-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
6
-
sparc
-
solaris_10
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();
}
}
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();
}
}
- relates to
-
JDK-6404708 b77 Reg: unable to enter directories in JFileChooser with "Focus Follows Mouse" gnome option
- Closed
-
JDK-6431072 Painting problems in the bottom of xawt TextArea when autoscrolling on append
- Open
-
JDK-6242833 Mouse cursor doesn't behave correctly after maximizing on Linux/JDS 3
- Resolved