Code Comments
Programming Forum and web based access to our favorite programming groups.Hi, I was just wondering if anyone can tell me how do I get java to clear the screen. I know there is a cls; command in C but I cant find one for Java. Thanks Jacqui
Post Follow-up to this messageOn Wed, 22 Sep 2004 19:06:12 +1000, Glenn & Jacqui <glenn.hansen@tpg.com.au> wrote: > Hi, > > I was just wondering if anyone can tell me how do I get java to clear the > screen. > > I know there is a cls; command in C but I cant find one for Java. There is no such function in Java. Java is platform-independant, and consider: Some platforms might not even have such a function in their libraries. That being said, you can use your cls function (which i assure you, is not part of standard C either) by JNI. However, you lose platform independance when you do that, and you (usally, unless the User explicitly allows) can not use such code from Applets. Of course, you can just print a few dozen newlines, but i guess that is not what you wanted to do ;) See you Stefan -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.