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

java.awt.Choice does not stay in popped up state when clicked in windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      rc1
    • CPU:
      x86
    • OS:
      windows_98, windows_2000, windows_xp
    • Verification:
      Verified

      Description

      The java.awt.Choice does not popup and stay when clicked in windows (I tested it in Win 98, Win 2K and Win XP). It pops up and then goes down again. It does not stay in a popped up state. This has been happening in merlin build 81 and not in earlier builds (I tested against 79 and 80). To select a choice, you have to keep the mouse button pressed and then do a drag to the required choice item. This bug can be seen in the program :


      import java.awt.*;
      import java.awt.event.*;

      public class ChoiceTest {
              public static void main(String [] args){
                      Frame f = new Frame("Test Frame");
                      Choice c = new Choice();
                      c.add("Choice 1");
                      c.add("Choice 2");
                      c.add("Choice 3");
                      c.add("Choice 4");
                      c.add("Choice 5");
                      c.add("Choice 6");
                      c.add("Choice 7");
                      c.add("Choice 8");
                      c.add("Choice 9");
                      f.setLayout(new FlowLayout());
                      f.add(c);
                      f.setSize(100,100);
                      f.addWindowListener(new WindowAdapter(){
                              public void windowClosing(WindowEvent we){
                                      System.exit(0);
                              }
                      });
                      f.setVisible(true);
              }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ssisunw Ssi Ssi (Inactive)
              Reporter:
              kjethisunw Kanishk Jethi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: