| Stefan Schulz 2004-09-22, 9:10 am |
| On 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/
|