-
Bug
-
Resolution: Duplicate
-
P3
-
None
-
1.4.0
-
None
-
x86
-
windows_nt
When a FileDialog is shown, it takes the focus onto one of its components. When the FileDialog is then dismissed using the OK or CANCEL button, focus seems to dissapear with it. It cannot be restored to the application that displayed the dialog either with the keyboard or with the mouse. It also appears that there might be some type of related "hang" that is causing repainting problems.
To reproduce, run the Stylepad demo. Click the folder button on the toolbar to display the dialog. Now close the FileDialog and attempt to restore focus back to the application. It cannot be done.
To see the repainting portion of the problem, do the following:
Start Stylepad again and make sure that focus is on the first toolbar button. Now select the menu item File->Open. Dismiss the FileDialog. Notice that focus becomes lost again and that there is a repaint problem (ie. the menu appears to still be open). This repaint problem is not specific to menus. It seems that this FileDialog problem is causing similar repaint problems when it hangs regardless of what it is that needs to be repainted under it.
It looks like this was introduced in b67.
I am running on a dual processor machine.
To reproduce, run the Stylepad demo. Click the folder button on the toolbar to display the dialog. Now close the FileDialog and attempt to restore focus back to the application. It cannot be done.
To see the repainting portion of the problem, do the following:
Start Stylepad again and make sure that focus is on the first toolbar button. Now select the menu item File->Open. Dismiss the FileDialog. Notice that focus becomes lost again and that there is a repaint problem (ie. the menu appears to still be open). This repaint problem is not specific to menus. It seems that this FileDialog problem is causing similar repaint problems when it hangs regardless of what it is that needs to be repainted under it.
It looks like this was introduced in b67.
I am running on a dual processor machine.
- duplicates
-
JDK-4491577 JTextArea, JEditorPane:Not editable after loading a file on Windows
-
- Closed
-
- relates to
-
JDK-4508670 Lightweight repaint problem after dismissing heavyweight FileDialog
-
- Resolved
-