• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Refreshing the JFrame!!

 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Calling validate() should cause the frame to lay out all of it's components again.
 
Aravind Prasad
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you sir..
I got it!!

regards

Aravind Prasad
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic