Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

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

EdStevens

This really has nothing to do with SQL Developer (the subject of this forum). It is a much better fit in SQL & PL/SQL.
And just as a side comment, storing 'age' as data is a flawed design. The 'age' of everyone and every thing is increasing by the day, if not by the second. What is your plan to keep 'age' current? Better to store 'date of birth' and the calculate 'age' when needed at run-time.

User_H3J7U

The 'age' of everyone and every thing is increasing by the day, if not by the second.
Sometimes the age stops increasing.
изображение.png

EdStevens

Pour me one!
Of course, that's not actually the age, but the amount of time it was 'aged' in the barrel before bottling.

1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 6 2010
Added on Jun 6 2010
10 comments
1,115 views