File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Refreshing the JFrame!!" Watch "Refreshing the JFrame!!" New topic

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


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!!


Aravind Prasad
wood burning stoves
subject: Refreshing the JFrame!!
Similar Threads
Invisible Buttons still visible
what do we do in unreferenced()?
Printing of records