Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4144823

large choice menu on Solaris is inaccessible

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P4
    • None
    • 1.2.0
    • client-libs
    • sparc
    • solaris_2.6

    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();
              }
      }

      Attachments

        Issue Links

          Activity

            People

              jdunnsunw Jeffrey Dunn (Inactive)
              karnoldsunw Kenneth Arnold (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: