This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The bug is described in the forums here http://forums.netbeans.org/post-98744.html but I could not find it in bugzilla. The mouse cursor does not change to a resize cursor when hovering over window borders etc. after showing a modal progress dialog with ProgressUtils.showProgressDialogAndRun(). This happens because the main window glass pane is temporarily replaced by a translucent grey glass pane and when re-assigning the old glass pane it is changed to visible (although transparent) even though it was not before. This is because when calling JFrame.setGlassPane() the visibility of the new glass pane is set to the visibility of the previous glass pane. It can be fixed by adding the following line in org.netbeans.modules.progress.ui.AbstractWindowRunner: private void ungrayMainWindow() { if (oldGlassPane != null) { JFrame jf = (JFrame) WindowManager.getDefault().getMainWindow(); jf.setGlassPane(oldGlassPane); jf.getGlassPane().setVisible(false); // LINE ADDED FOR FIX! jf.invalidate(); jf.repaint(); } }
http://hg.netbeans.org/core-main/rev/f702645c67e4
antonva, thanks for your patch.
np, =) Anton
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/f702645c67e4 User: Jan Peska <jpeska@netbeans.org> Log: #200118 - Mouse cursor not changing after showing modal progress dialog with ProgressUtils