-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.2
-
sparc
-
solaris_2.5.1
Name: mf23781 Date: 11/17/97
On Solaris the width of the awt.Choice control is always
adjusted so it accommodates the longest item in the list
of selectable items. Any attempt to set the width is ignored.
java.awt.Choice maps in AIX/Solaris to a Motif class that's
actually a composite containing a CascadeButton from which a
PullDownMenuPane is posted. The CascadeButton is contained
within a RowColumn widget. The way this composite responds to
a resize is that the RowColumn container stretches to fill the
area -- but as a layout manager itself, it has its own rules
about how to resize its children (the CascadeButton that you
see). The CascadeButton is sized according to the largest item
in its attached menu, and you can't change that
behaviour (not even in Motif itself).
Therefore the only way I can see to make the layout behaviour
consistent with other platforms, would be to re-implement the
Choice component using different Motif widgets.
On Win95 the width can be set.
A serious consequence of this bug is that the awt.Choice
control can cover up/overlap other controls.
======================================================================
Name: rrT76497 Date: 05/06/98
ksuresh/SIPTech May 06,98. This bug is already in db.
======================================================================
- duplicates
-
JDK-4032771 Solaris: setSize doesn't change the size of Choice
-
- Closed
-