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

Mouse enter/exit events generated without modifiers

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 1.2.2, 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta
    • CPU:
      x86, sparc
    • OS:
      windows_95, windows_nt

      Description



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

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: