When the mouse cursor is highlighting a menu entry that
is covering the text area, it will change from the
arrow shape into the I-beam. Additionally, the mouse
cursor will sometimes disappear instead of changing
into the I-beam, but I have not been able to reliably
reproduce this. Moving the cursor out of the text area
restores it to normal.
jEdit 4.3pre3 on PPC OS X 10.4.4, Java 1.5.0_05
This does not happen in jEdit 4.3pre2 on WinXP, Java
1.5.0_03
Logged In: YES
user_id=1484536
I do not believe that this is a bug in jEdit. I found a bug
report on Sun's website along with a test program that shows
the same behavior that jEdit's menus have. It is Bug ID:
6391547.
The link to the bug is here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6391547.
When I run the test program on WinXP Pro SP2 with Java
jdk/jre 1.5.0_06 the I-beam is not present. When I run it
on Mac OS X 10.4.5 with Java versions 1.4.2_09 and 1.5.0_05
the I-beam is the cursor for the menu. It is possible that
the most recent version of Java for Windows has fixed the
bug while the Java for Mac OS X has not.
Here is the test program that is included with the bug
report which reproduces the specified behavior:
import java.awt.Dimension;
import java.awt.FileDialog;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.JTextField;
public class TestAWTDialog extends JFrame {
private JMenuBar jMenuBar1 = new JMenuBar();
private JMenu jMenu1 = new JMenu();
private JMenuItem jMenuItem1 = new JMenuItem();
private JMenuItem jMenuItem2 = new JMenuItem();
private JTextField jTextField1 = new JTextField();
public TestAWTDialog() {
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
}
}
private void jbInit() throws Exception {
this.setJMenuBar(jMenuBar1);
this.setDefaultCloseOperation(0);
this.setSize(new Dimension(400, 300));
this.setTitle("File->Open->Move your mouse onto
TextField");
jMenu1.setText("File");
jMenuItem1.setText("Open");
jMenuItem1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jMenuItem1_actionPerformed(e);
}
});
jMenuItem2.setText("Exit");
jMenuItem2.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
jMenuItem2_actionPerformed(e);
}
});
jMenu1.add(jMenuItem1);
jMenu1.add(jMenuItem2);
jMenuBar1.add(jMenu1);
this.getContentPane().add(jTextField1, null);
}
private void jMenuItem2_actionPerformed(ActionEvent e) {
System.exit(0);
}
private void jMenuItem1_actionPerformed(ActionEvent e) {
FileDialog fd = new FileDialog(this);
fd.setMode(FileDialog.LOAD);
fd.setTitle("File dialog");
fd.setVisible(true);
}
public static void main(String[] argv){
TestAWTDialog dlg = new TestAWTDialog();
dlg.setVisible(true);
}
}
I get this behaviour also, but if it's in Java, then we can't fix it !
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).