General discussion

Locked

Clear Screen

By zilvertung ·
Is there any other way to clear the screen in a Java program besides the 24-line thing?

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Clear Screen

by davram In reply to Clear Screen

If you are on Windows 9x OS, you could use this code sequence:

...
try
{
(Runtime.getRuntime()).exec("C:\\command.com /c cls");
}
catch(Exception err)
{
//exception handling
}
...

Hope this helps.
++
Dan

Collapse -

Clear Screen

by zilvertung In reply to Clear Screen

THX for the input, i was just finishing school and didnt really have time to try it out but i see where you were going with it. :)

Collapse -

Clear Screen

by zilvertung In reply to Clear Screen

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums