aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Refreshing the JFrame!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Refreshing the JFrame!!" Watch "Refreshing the JFrame!!" New topic
Author

Refreshing the JFrame!!

Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Dear Ranchers,
I'm doing a simple application in Java Swings and Oracle. there are 3 textfields in the frame and 2 buttons. After entering the details in the text fields when we press the ok button, the records are entering into the database. and it will displays a Option Pane, Add more records, Yes and NO.
If we press, YES, the whole frame must reload.

can i call the init() for that?
or is there any particular way to do this.

Please help me ranchers..

Thanks in advance

regards

Aravind Prasad
Christopher Elkins
Ranch Hand

Joined: Oct 26, 2004
Posts: 45
Calling validate() should cause the frame to lay out all of it's components again.


Christopher Elkins, SCJP Java 2 Platform
Aravind Prasad
Ranch Hand

Joined: Dec 28, 2005
Posts: 263
Thank you sir..
I got it!!

regards

Aravind Prasad
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Refreshing the JFrame!!