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

Mouse pointer remains to TextCursor when mousepointer is on the MenuItem.

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_10

      Description

      I have a frame, which has a menu & a textarea. When i move the mouse pointer on the textarea the cursor is text cursor , which is the correct behaviour. I move the mouse pointer just below the menubar & press F10 to invoke the menu & see the menuitem. When Menu items are visible the mouse pointer should change to default cursor, but this is not happening. This works fine in Mustang b70 , but fails after that. Hence its a regression because it works fine in tiger.

      step to reproduce
      ---------------
      1) Run the below program in Metal LookAndFeel & GTK LookAndFeel .
      2) Move the mouse below the menubar. Observe that mouse cursor is text cursor.
      3) Press F10 , Observe that menuitems are visible, but mouse cursor remain to textcursor. If you see the same then the bug is reproduced.
      I tested this in jdk7.0 b09 on solaris ( sun ray ).

      import javax.swing.*;

      public class TestMenuCursor {
      public JFrame frame=null;
      TestMenuCursor( ){
      frame = new JFrame();
      JMenuBar menuBar = new JMenuBar();
      JMenu menu = new JMenu("Menu Label");
      menuBar.add(menu);
      JMenuItem item1 = new JMenuItem("Praveen Mohan");
      JMenuItem item2 = new JMenuItem("Girish.R");
      JMenuItem item3= new JMenuItem("Lawrence Prem Kumar");
      JMenuItem item4= new JMenuItem("Lawrence Prem Kumar Lawrence Prem Kumar Lawrence Prem Kumar Lawrence");
      menu.add(item1);
      menu.add(item2);
      menu.add(item3);
      menu.add(item4);
      frame.getContentPane().add(new javax.swing.JTextArea());
      frame.setJMenuBar(menuBar);
      frame.setSize(400,400);
      frame.setVisible(true);
      }

      public static void main(String []args){
      new TestMenuCursor();
      }
      }

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dav Andrei Dmitriev (Inactive)
              Reporter:
              lpremkumsunw Lawrence Premkumar1 (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: