Clearing The Screen?

Can this be done?

  • (3 Pages)
  • +
  • 1
  • 2
  • 3

33 Replies - 80447 Views - Last Post: 18 April 2010 - 11:18 PM Rate Topic: -----

#31 Locke   User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 552
  • View blog
  • Posts: 5,624
  • Joined: 20-March 08

Re: Clearing The Screen?

Posted 05 March 2010 - 12:13 AM

As zim1985 said, please don't post in very old threads.

Open your own topic with whatever you're having trouble with.
Was This Post Helpful? 0
  • +
  • -

#32 pbl   User is offline

  • There is nothing you can't do with a JTable
  • member icon

Reputation: 8381
  • View blog
  • Posts: 31,956
  • Joined: 06-March 08

Re: Clearing The Screen?

Posted 05 March 2010 - 03:14 PM

View Postaime_methe, on 16 July 2007 - 12:07 PM, said:

Actualy there is a clear screen command, well i dont know if it works for Java but it works for J# wich is another form of Java :
System.Console.Clear();


maybe it works in Java, dont know

No but
System.console().printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n");
will doit
Was This Post Helpful? 0
  • +
  • -

#33 Guest_supernewbie*


Reputation:

Re: Clearing The Screen?

Posted 18 April 2010 - 11:14 PM

View Postedvella, on 18 February 2009 - 06:16 AM, said:

I came here today looking for a command to clear the screen, with the hope of making my assignment program look better.

I searched through a lot of forums and it seems that this simple question has gone unanswered for a long time.

So I took a good look at my ASCII list, and surely enough there is a mention of a code for form feed. Then I just tried using \f in Java and it is working wonders.

So if anyone still cares, try this:
System.out.println("\f");


You can use "\f" only 'cause you r using BlueJ, and why would you want to do anything like that with console anyway??? if you are thinking about programming anything that is needing gui you definitely don't wanna use console for it
Was This Post Helpful? 0

#34 Locke   User is offline

  • Sarcasm Extraordinaire!
  • member icon

Reputation: 552
  • View blog
  • Posts: 5,624
  • Joined: 20-March 08

Re: Clearing The Screen?

Posted 18 April 2010 - 11:18 PM

Why oh WHY do people keep necro-ing this thread.

Ending it.
Was This Post Helpful? 1
  • +
  • -

  • (3 Pages)
  • +
  • 1
  • 2
  • 3