[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/23018] JLabel with imageIcon is set incorrectly
From: |
gcc-bugzilla at gcc dot gnu dot org |
Subject: |
[Bug classpath/23018] JLabel with imageIcon is set incorrectly |
Date: |
8 Sep 2010 18:04:50 -0000 |
If a JLabel, that has been constructed with a ImageIcon, is added to a
container with BorderLayout and is set to the the position center, its
positioned at the left side, and not in the center as it should be.
here the sollution how to change this:
change this constructor in JLabel:
public JLabel(Icon image)
{
this(null, image, LEADING);
}
to this one:
public JLabel(Icon image)
{
this(null, image, CENTER);
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23018
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug classpath/23018] JLabel with imageIcon is set incorrectly,
gcc-bugzilla at gcc dot gnu dot org <=