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

Mouse freeze happens after clicking MB1 quickly and continuously.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1.6
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Description


      chosho.kyo@japan 1998-11-13

      [Working Evironment]
      OS: Solaris 2.5.1J
      JRE: jre1.1.6fcs
      Window: CDE1.0.2

      [Phenomenon]
      Mouse freeze happens after clicking MB1 quickly and continuously.

      [Step1] Compile PopupMenuButton.java, run PopupMenuButton.class
      [Step2] A frame "AWTapp" with a button called "push me" appears.
      [Step3] Click MB1 on "push me" button quickly and continuously.
      [Step4] Mouse console will freeze, however hitting Esc-key can release the freeze.

      //----PopupMenuButton.java-----
      import java.awt.*;
      import java.awt.event.*;

      public class PopupMenuButton extends Button {
           static Class listener = MouseAdapter.class;

           PopupMenuButton(String label) {
      super(label);
      final PopupMenu popup = new PopupMenu();
      popup.add(new MenuItem("item 1"));
      popup.add(new MenuItem("item 2"));
      popup.add(new MenuItem("item 3"));
      add(popup);

                enableEvents(ActionEvent.MOUSE_EVENT_MASK);
      addMouseListener(new MouseAdapter() {
      public void mouseClicked(MouseEvent e) {
      popup.show(PopupMenuButton.this, 0,
      PopupMenuButton.this.getSize().height);
      }
      });
           }

           public static void main(String args[]) {
      Frame frame = new Frame();
      frame.setSize(100,100);
      frame.add(new PopupMenuButton("push me"));
      frame.setVisible(true);
           }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              bchristi Brent Christian
              Reporter:
              duke J. Duke (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: