JDK-4144823 : large choice menu on Solaris is inaccessible
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: sparc
  • Submitted: 1998-06-02
  • Updated: 2001-06-27
  • Resolved: 2001-06-27
Related Reports
Duplicate :  
Description
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();
        }
}

Comments
EVALUATION The bug is duplicate of 4288285 which was fixed and integrated in Merlin-beta2. ###@###.### 2001-06-27
27-06-2001