Discussion Locked

Clear Screen

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there any other way to clear the screen in a Java program besides the 24-line thing?

3 replies

by davram

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

by zilvertung

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. :)

This discussion is closed to new replies.