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!

JFrame paintComponent()

843806Apr 26 2008 — edited May 13 2008
I was trying to replace the standard appearance of a window by creating a class extending JFrame, calling setUndecorated(true), and replacing the paintComponent(Graphics g) method (as is described in the book Swing Hacks from O'Reilly).
However, this doesn't seem to work as expected because the paintComponent() method of the class is never called. How do I solve this problem?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 10 2008
Added on Apr 26 2008
19 comments
550 views