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

Mouse Cursor error when moved from TextArea to popup menu

XMLWordPrintable

    • other
    • windows_xp

      OPERATING SYSTEM(S)
      Windows XP Professional x64 Edition
      FULL JDK VERSION(S):
      java -version
      java version "1.5.0 04"
      Java(TM) 2 Runtime Environment. Standard Edition (build 1.5.0 04-b05)
      Java HotSpot(TM) Client VM (build 1.5.0 04-b05.mixed mode)
      DESCRIPTION:
      - Exact steps to reproduce
      1. Run the following simple case
      2. Press Alt+Space to open the window control menu
      3. Move mouse cursor from popup menu to TextArea, the cursor change to text select shape
      4. Move mouse cursor back to popup menu, the cursor is still text select shape <--PROBLEM
      - Minimal source code that demonstrates the problem
      /*
       * JTextAreaTest.java
       */
      import java.awt.event.*;
      import javax.swing.*;
      public class JTextAreaTest extends JTextArea {
      public JTextAreaTest() {
      super();
      setText("This is a Test.");
      setName("jtext");
      }
      public static void main(String[] args) {
      JFrame frame = new JFrame("Locale test");
      frame.getContentPane().add(new JTextAreaTest());
      frame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent event) {
      System.exit(0);
      }
      });
      frame.setSize(300, 300);
      frame.setVisible(true);
      }
      }

            osemenovsunw Oleg Semenov (Inactive)
            elarsen Erik Larsen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: