I need to make a simple refresh button for a gui java program I have the button made I just am not sure what the code needs to be to make the button work. Any help would be really appreciated.
Printable View
I need to make a simple refresh button for a gui java program I have the button made I just am not sure what the code needs to be to make the button work. Any help would be really appreciated.
reload the necessary data and redraw the window or whatever is containing the information. i'm starting to look into swing and awt but only know spotty information, so i can't help much beyond this general tip.
I'm not sure that anyone can give you specific recommendations based on the information presented. You right now are the only one who knows what needs to be refreshed, and so it is now up to you to write the routines that go about doing this. If you need more help, then you may wish to post a small compilable program that demonstrates your problem. Best of luck.