REFRESHING THE SCREEN {I'm a beginner}
Sorry for the lame question but I got a whole bunch of my GUI in my JApplet, under the paint class
public void paint( Graphics g ) {
...
}
I also have a button addButton, when I click the button it edits the information that is being displayed, how do I refresh the screen so the new info is shown?!?!
I.E. Like clearing the current applet display and then calling the paint class again, how you do that?!?! It's probably real simple...
THANKS!
NOMAD
P.S. This is an ASAP subject, I need it within a couple hours, PLEASE!!! :eek:
I got mine to work with repaint();
I used repaint(); but I think it only worked cause I'm using an Applet. I don't know about the first, didn't try it. As for your CLS question I have NO idea. Thats what I'd like to know. Oh I did hve to do this to make the screen faign a refresh...
SetVisible( false );
SetVisible( true );
repaint;
This worked fine for me. And since my project isn't memory intensive, I don't think it'll matter too much. Other than bad style!
NOMAD
p.s. THANKS!!!