-
Bug
-
Resolution: Unresolved
-
P3
-
None
-
6u14
-
x86
-
linux
Component.setCursor is ignored when our editor action (subclass of TextAction) is invoked from main menu item. When it is invoked from popup menu wait cursor is set/displayed correctly. I even tried to use invokeLater to delay our code. Cursor was set on our subclass of JEditorPane. When I chanegd that so that cursor is set on whole Window then it works when action is onvoked from main menu but not when invoked from popup menu.
I checked call stack but did not find any relevant difference. I also checked if there is any other call of Component.setCursor. None.
Only workaround I found is to set wait cursor on JFrame glass pane. It works always regardless way how action is invoked.
I was not able to reproduce this with simple test case.
Steps to reproduce:
1.Get NetBeans IDE either dev build at http://www.netbeans.org/downloads/index.html. At bottom there is "zip file format" link.
2. Start IDE, open big java file in editor (~1000 line sor more so that action takes longer)
3. From popup menu select Format action - cursor is set correctly to waiting
4. Undo Ctrl-Z
5. From main menu select Source -> Format. Cursor is not set.
Let me know if you need more details. Our code is org.netbeans.editor.ActionFactory$FormatAction in module editor.lib.
http://hg.netbeans.org/release67/file/tip/editor.lib/src/org/netbeans/editor/ActionFactory.java
I checked call stack but did not find any relevant difference. I also checked if there is any other call of Component.setCursor. None.
Only workaround I found is to set wait cursor on JFrame glass pane. It works always regardless way how action is invoked.
I was not able to reproduce this with simple test case.
Steps to reproduce:
1.Get NetBeans IDE either dev build at http://www.netbeans.org/downloads/index.html. At bottom there is "zip file format" link.
2. Start IDE, open big java file in editor (~1000 line sor more so that action takes longer)
3. From popup menu select Format action - cursor is set correctly to waiting
4. Undo Ctrl-Z
5. From main menu select Source -> Format. Cursor is not set.
Let me know if you need more details. Our code is org.netbeans.editor.ActionFactory$FormatAction in module editor.lib.
http://hg.netbeans.org/release67/file/tip/editor.lib/src/org/netbeans/editor/ActionFactory.java