-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
sparc
-
solaris_2.6
The following code creates a choice menu with 100 items. On Solaris, when I pop up the menu, it just shows the first N entries that fit on the screen. On NT I get a menu with a scroll bar so all choices are accessible.
Here is an example piece of code:
public class TestChoice extends Frame
{
Label label = new Label ("Try to select Choice 89:");
Choice bigChoice = new Choice();
public TestChoice() {
super("Show Unusable Choice");
for (int i=0; i<100; i++)
bigChoice.add("Choice " + i);
setLayout(new GridBagLayout());
add(label);
add(bigChoice);
pack();
setVisible(true);
}
public static void main(String[] args) {
new TestChoice();
}
}
Here is an example piece of code:
public class TestChoice extends Frame
{
Label label = new Label ("Try to select Choice 89:");
Choice bigChoice = new Choice();
public TestChoice() {
super("Show Unusable Choice");
for (int i=0; i<100; i++)
bigChoice.add("Choice " + i);
setLayout(new GridBagLayout());
add(label);
add(bigChoice);
pack();
setVisible(true);
}
public static void main(String[] args) {
new TestChoice();
}
}
- duplicates
-
JDK-4288285 Choice on Solaris: items of Choice can't be displayed if choice has many items
- Closed