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.
(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).
Created attachment 77389 [details] Flash video showing blocky main window repaint on OSX
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
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 ?
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...
we use apple's 'brushMetal' property to adjust main window's background. the flickering is visible also in a plain swing app...
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.
-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
Thanks for the hint, it looks a bit bland compared to the 6.5 look but it's better now without that flicker.