i want to implement clear screen button... when click on that button applet screen can clear...
in applet i use command prompt so.. when ever click event occur whole applet clear and command prompt is appear in enter key press ...
is it possible to clear the applet screen....give me example code or basic idea...;
Joined: Mar 22, 2005
What do you mean by "applet screen"? Applets consist of AWT or Swing GUI elements - if there are any elements you no longer want there, just remove them from the GUI.
If there is custom painting on a, say, Canvas, just draw a big white rectangle (or black, or whatever qualifies as "clear").