Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Clear screen
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



Report this thread to moderator Post Follow-up to this message
Old Post
Glenn & Jacqui
09-22-04 02:10 PM


Re: Clear screen
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/

Report this thread to moderator Post Follow-up to this message
Old Post
Stefan Schulz
09-22-04 02:10 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 05:20 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.