File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Joined: Mar 01, 2009
Mar 04, 2009 23:09:21
i have 8 text fields 3 combobox & 2 buttons (1st update & 2nd is clear ) in jpanel.
i want to set them at there default state when i click on clear button.
i dont want to write "text1.settext(" ");" code for every field.
in short i want to referesh my jpanel.
is there any shortcut.
Joined: Jul 26, 2007
Mar 04, 2009 23:22:51
is to have a method which does the setting all the fields to the default state and call that method whenever you want to refresh the panel.
Write once, invoke anytime ;)
How to ask questions
Donate a pint, save a life!
Onff-turn it on!
I agree. Here's the link:
subject: jpanel referesh
a question about JPanel
form being submitted twice
Displaying a Confermation Message
When there is change in Databse Table data JSP also needs to be refreshed
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014