Skip to Main Content

How to change default background color of Panel?

843807Jun 6 2010 — edited Jun 8 2010
In a paint function of the Panel I draw black background. But when I drag this panel I can see how this Panel is redrawing, and I can see flickering default system color of Panel (light color). I'd like to change this color not to see this flickering. (I'd like to change only default color of this panel so I can't use UIManager.put() function). How to get rid of this flickering?

ps. I have to use Panel, not JPanel.
Comments
Post Details
Added on Jun 6 2010
10 comments
666 views