-
Swing Display Problem
I have been using SunOne Studio and have several buttons in a frame on a form.
When I show the buttons they show correctly, If I then try and hide them, they dont hide.
Once ive told them to hide, the image of the buttons remain on the screen, however they arn't their, clicking them does nothing.
If I move the window, or make it bigger or smaller the buttons vanish.
How do I cause the screen to refresh? or if that is not possible, how do I resize the application window?
Thanks in advance for any help you can offer.
-
Just call the repaint() method of the Frame. That should take care of it.
:)
-
Thats not working either.
Although I said frame, its actually a jPanel, which im assuming may be why its not working. However i tried it with a frame instead, again nothing happened.
Any other ideas?