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 159186 - Main window repaint flickers on OSX
Summary: Main window repaint flickers on OSX
Status: RESOLVED INVALID
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: Macintosh (x86) All
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-26 03:47 UTC by emi
Modified: 2009-10-14 19:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Flash video showing blocky main window repaint on OSX (1.07 MB, application/octet-stream)
2009-02-26 03:47 UTC, emi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emi 2009-02-26 03:47:06 UTC
(See the attached flash video)

Repaint of the main window in the IDE is visibly broken in OSX with the 6.7 M2 build.

There is a noticeable "flicker" when the switch from dark-gray to light-gray is done (after a repaint due to active
window change) and basically you can see the individual sub-components (like the search bar) get repainted.

It's blocky and overall annoying when you want to use the IDE with floatable windows (like dragging the navigator
outside the main window into a dedicated one).
Comment 1 emi 2009-02-26 03:47:53 UTC
Created attachment 77389 [details]
Flash video showing blocky main window repaint on OSX
Comment 2 Stanislav Aubrecht 2009-03-24 14:11:31 UTC
yes, the repainting of the main window is not very smooth on mac os x but there's nothing we can do about it from
netbeans side.
please file a bug against apple's jdk implementation
Comment 3 emi 2009-03-24 14:20:56 UTC
I don't understand: why did you bother implementing that new fancy look and feel if it looks like that ?

6.7 is unusable on OSX and I've switched back to 6.5.

I'm not sure lots of people will be happy to use an IDE that looks like a 2nd class citizen on OSX.

Now, you are within rights to say it's a JDK bug, but didn't this new look and feel have to pass some usability and
quality control with the current JDK(s) on OSX ?
Comment 4 _ tboudreau 2009-09-30 23:32:36 UTC
Is the background done by mainWindow.setBackground(), or is it handled by the JDK with apple.awt.brushMetalLook?  If we are in control of the window 
background (and since brush metal look doesn't really exist for 1.6 and up we could be at least on 1.6), I remember that I did the following in my apple 
appearance patches for issue 168650 when setting the background color of the main window to emulate native app behavior - it didn't completely 
eliminate the flickering, but it significantly reduced it:

            synchronized (mainWindow.getTreeLock()) {
                mainWindow.setIgnoreRepaint(true);
                mainWindow.setBackground(new Color(200,200, 200));
                mainWindow.setIgnoreRepaint(false);
            }
            mainWindow.getRootPane().paintImmediately(0, 0, 
                    mainWindow.getWidth(), mainWindow.getHeight());

Worth a try anyway...
Comment 5 Stanislav Aubrecht 2009-10-06 16:27:29 UTC
we use apple's 'brushMetal' property to adjust main window's background.
the flickering is visible also in a plain swing app...
Comment 6 emi 2009-10-07 07:37:30 UTC
I saw no look-and-feel flicker while working on 6.5. Only when I gave 6.7 a test-drive was I instantly hit by that
flicker, which is even more annoying if you switch the IDE's focus quite often, like I do.

Frankly I would like to revert to the 6.5 look and feel. Any command line arguments I can use to do that ? Or are we
stuck with the current look ?

The new look and feel is prettier for screenshots and "looks" more native but because of this flicker it "feels" even
more foreign and annoying to me.
Comment 7 Stanislav Aubrecht 2009-10-14 09:06:52 UTC
-Dapple.awt.brushMetalLook=false in etc/netbeans.conf or -J-Dapple.awt.brushMetalLook=false on command line will turn
the brushed metal look off. netbeans won't look native then but it won't flicker
Comment 8 emi 2009-10-14 19:00:49 UTC
Thanks for the hint, it looks a bit bland compared to the 6.5 look but it's better now without that flicker.