Clearing the DOS prompt screen in Java

Started by
0 comments, last by Dark Star 22 years, 6 months ago
Hi guys can any of you tell me how to clear the DOS prompt screen using Java is there a method in the System class or what? I am using Java 2 and please no applet code... I am just coding in an MSDOS window Cheers Dark Star UK
---------------------------------------------You Only Live Once - Don't be afriad to take chances.
Advertisement
it can''t be done (to my knowledge). Java doesn''t think of a DOS window as a window

you can always try
for (int i = 0; i < 50; i ++ ) {
System.out.println();
}


:D

You might want to look into JDK1.4 - they might have added something, but my guess is if you want to do anything fancy, you might have to move up to AWT or Swing.

~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
Community Service Announcement: Read How to ask questions the smart way before posting!
~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!

This topic is closed to new replies.

Advertisement