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.

Bug 200118 - Mouse cursor not changing after showing modal progress dialog with ProgressUtils
Summary: Mouse cursor not changing after showing modal progress dialog with ProgressUtils
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Progress (show other bugs)
Version: 7.0
Hardware: PC Windows Vista
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords: NETFIX
Depends on:
Blocks:
 
Reported: 2011-07-13 16:32 UTC by antonva
Modified: 2011-08-10 21:31 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description antonva 2011-07-13 16:32:30 UTC
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();
        }
    }
Comment 2 Jan Peska 2011-08-08 12:52:11 UTC
antonva, thanks for your patch.
Comment 3 antonva 2011-08-08 22:19:25 UTC
np, =)

Anton
Comment 4 Quality Engineering 2011-08-10 21:31:21 UTC
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