[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-classpath] [bug #13629] JLabel with imageIcon is set incorrectly
From: |
Beat Wolf |
Subject: |
[bug-classpath] [bug #13629] JLabel with imageIcon is set incorrectly |
Date: |
Mon, 4 Jul 2005 14:09:32 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 |
URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13629>
Summary: JLabel with imageIcon is set incorrectly
Project: classpath
Submitted by: asraniel
Submitted on: Mon 04.07.2005 um 14:09
Category: classpath
Severity: 3 - Normal
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Platform Version: Mandrake 9.x
_______________________________________________________
Details:
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);
}
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13629>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/
- [bug-classpath] [bug #13629] JLabel with imageIcon is set incorrectly,
Beat Wolf <=