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

large choice menu on Solaris is inaccessible

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      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

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: