-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
1.2.2
-
generic
-
generic
The JLabel spec says that setHorizontalAlignment() can accept
LEFT, CENTER, RIGHT, LEADING or TRAILING.
However, the spec says that getHorizontalAlignment() returns
LEFT, CENTER, or RIGHT.
The same issue applies to setHorizontalTextPosition() and
getHorizontalTextPosition().
The information for these methods should be consistent, and
the default values returned by getHorizontalAlignment() and
getHorizontalTextPosition() should be specified.
See Comments section for history and additional info on this
issue.
LEFT, CENTER, RIGHT, LEADING or TRAILING.
However, the spec says that getHorizontalAlignment() returns
LEFT, CENTER, or RIGHT.
The same issue applies to setHorizontalTextPosition() and
getHorizontalTextPosition().
The information for these methods should be consistent, and
the default values returned by getHorizontalAlignment() and
getHorizontalTextPosition() should be specified.
See Comments section for history and additional info on this
issue.
- relates to
-
JDK-4214257 Hor. alignment & text position methods of JLabel don't behave as stated in spec
-
- Resolved
-