-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
1.4.0
-
sparc
-
solaris_7
As demontrated in the attached program which shows 2 columns of various
types of JCheckBoxes and JRadioButtons. The ones on the right column have
their setBorderPainted() set. There's an undesirable side-effect of the
square checkboxes and/or the icon image of a red ball on the left side of
the component are partially obscured by the 3-D looking raised bevel border.
Moreover, when having the border painted, the checkbox will have the 3-D appearance but with the content been partially blocked out; it appears as
if the square/icon is sinking and skewing underneath. This is worst when
the component is in the unselected state.
Perhaps the minimum size implementation of the JCheckBox should taken into
account the wrapped around border so that its square checkbox or icon is
always centered.
For the JRadioButton the raised-bevel border is very appropriate because
it would make the component resembles a button; however, I don't entirely
believe if this is the right choice for the JCheckBox.
types of JCheckBoxes and JRadioButtons. The ones on the right column have
their setBorderPainted() set. There's an undesirable side-effect of the
square checkboxes and/or the icon image of a red ball on the left side of
the component are partially obscured by the 3-D looking raised bevel border.
Moreover, when having the border painted, the checkbox will have the 3-D appearance but with the content been partially blocked out; it appears as
if the square/icon is sinking and skewing underneath. This is worst when
the component is in the unselected state.
Perhaps the minimum size implementation of the JCheckBox should taken into
account the wrapped around border so that its square checkbox or icon is
always centered.
For the JRadioButton the raised-bevel border is very appropriate because
it would make the component resembles a button; however, I don't entirely
believe if this is the right choice for the JCheckBox.
- duplicates
-
JDK-4373752 RFE:reopen bug 4187481, Radio and Checkbox buttons not laying out correctly
- Closed