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

Mouse enter/exit events generated without modifiers

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.2, 1.4.0
    • client-libs
    • beta
    • x86, sparc
    • windows_95, windows_nt



      Name: apR10133 Date: 07/13/2000


      ------------------------- Test.java ---------------------------------
      import java.awt.*;
      import java.awt.event.*;

      public class Test extends JFrame {

          public Test() {
      super("Test");
      setBounds(100,100,400,200);

      addMouseListener(new MouseAdapter() {
      public void mouseEntered(MouseEvent event) {
      System.out.println("Entered: "+event.getModifiers());
      }
      public void mouseExited(MouseEvent event) {
      System.out.println("Exited: "+event.getModifiers());
      }
      });

      addMouseMotionListener(new MouseMotionAdapter() {
      public void mouseDragged(MouseEvent event) {
      System.out.println("Dragged: "+event.getModifiers());
      }
      });
          }

          public static void main(Streing[] args) {
      (new Test()).setVisible(true);
          }
      }

      ---------------------------------------------------------------------
      ======================================================================

            bchristi Brent Christian
            apikalev Andrey Pikalev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: