Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to clear screen ??

 
chris liao
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just rad about the java runtime class may be you will get answer
 
chris liao
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
would you give me a sample about it ?? thanks!
 
Layne Lund
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

http://www.sotmesc.org/gcms/progbb/messages/10409.html
http://boston.eknazar.com/Forums/showthread.php?p=2662#post2662
http://www.artima.com/legacy/answers/Apr2000/messages/381.html
http://forum.java.sun.com/thread.jspa?threadID=628159&messageID=3599887
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic