The moose likes Beginning Java and the fly likes How to clear screen ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "How to clear screen ??" Watch "How to clear screen ??" New topic

How to clear screen ??

chris liao

Joined: Jul 24, 2005
Posts: 27
I want to clear screen,when run my application.
my application run in unix and winNT.
but i don't how to do,please help me !
vidhyasagar reddy
Ranch Hand

Joined: Jul 05, 2005
Posts: 40
just rad about the java runtime class may be you will get answer
chris liao

Joined: Jul 24, 2005
Posts: 27
would you give me a sample about it ?? thanks!
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Clearing the console is platform dependent. I don't of any method in the Java API that will do this directly. It looks like a Google search turns up some possibilities, but I don't know if any of them are guaranteed to be paltform-independent. In particular, the following links look somewhat promising:

Java API Documentation
The Java Tutorial
It is sorta covered in the JavaRanch Style Guide.
subject: How to clear screen ??
It's not a secret anymore!