How do you clear the screen?
Author |
Message |
Nai
|
Posted: Sat Jul 18, 2009 12:33 pm Post subject: How do you clear the screen? |
|
|
I'm really new to Java and the entire concept of methods and classes being already made for me to use. I'm using Ready and I am currently working on creating a blackjack game (only using text, because I do not know enough about using graphics in Java). I would like to make my game in a way that the text does not get pushed off the screen, but is instead erased and the cursor is reset at the top of the screen. In Turing, the language I am used to, I would use cls or draw a white box over everything and locate the cursor back to the starting position, but since I do not know how to do either of these things in Java (clear the screen or locate the cursor), I am having trouble coming up with a way to make my game look decent.
Is there any method in Java to clear the screen or locate the cursor? If not, how would I go about making one?
Thanks for any help. |
|
|
|
|
|
Sponsor Sponsor
|
|
|
Nai
|
Posted: Sat Jul 18, 2009 9:22 pm Post subject: RE:How do you clear the screen? |
|
|
Disregard that, I found my answer while looking through an unrelated post. |
|
|
|
|
|
|
|