Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes Refresh a frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Refresh a frame" Watch "Refresh a frame" New topic
Author

Refresh a frame

Jesse Walker
Ranch Hand

Joined: Aug 18, 2004
Posts: 50
I am trying to use a checkbox that once it is selected, that it will add a component to the frame do I need to use paint and repaint/update or is there another way??
Thank you
Jesse
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Brian Cole
Author
Ranch Hand

Joined: Sep 20, 2005
Posts: 875
    
    1
Call revalidate() on the JPanel after you have added the new component.


bitguru blog
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Refresh a frame
 
It's not a secret anymore!