brianhill53703 / macwidgets

Automatically exported from code.google.com/p/macwidgets
0 stars 0 forks source link

HUD window flicker on resize #176

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
My project uses macwidgets, and one of the windows uses HudWindow, but when you 
resize the whole thing gets repainted repeatedly causing massive flicker:

http://code.google.com/p/jarzilla/
http://code.google.com/p/jarzilla/source/browse/trunk/jarzilla/src/main/java/com
/googlecode/jarzilla/ui/ResourceExplorer.java

Original issue reported on code.google.com by voidstar@gmail.com on 18 Feb 2011 at 5:50

GoogleCodeExporter commented 9 years ago
Thought I'd mention that since the HUD looks like it probably uses the 
setUndecorated(true) method on the JFrame(?) this will cause resize flicker on 
the mac currently. I was recently playing around with writing a custom 
JRootPane and found that when I went to set the window to undecorated, I 
understandably lost the growbox in the bottom right corner, I didn't think this 
was a big deal at first, but resizing the frame any other way caused nasty 
flickering, you can also see this if you try to use a third party LAF that 
replaces the rootpane (i.e. Substance). it doesn't appear that there is a good 
way around this:

http://lists.apple.com/archives/Java-dev/2006/Mar/msg00179.html

http://lists.apple.com/archives/java-dev/2008/sep/msg00280.html

My guess is that the HUD window isn't really meant to be resized. I say all of 
this without having used it :P but hoping to help point out why it might be 
happening

Original comment by seth.sch...@gmail.com on 23 Mar 2011 at 2:58