Author |
Message |
dumplingboi
|
Posted: Sun Oct 17, 2004 5:44 pm Post subject: is there a cls command in java like in turing?? |
|
|
exactly what hte topic says><. so^^ anyone kno?? |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Dan
![](http://wiki.compsci.ca/images/archive/3/3c/20100325043407!Danspic.gif)
|
Posted: Sun Oct 17, 2004 8:54 pm Post subject: (No subject) |
|
|
are u using RTP? is this in the console? more info is needed..... |
Computer Science Canada
Help with programming in C, C++, Java, PHP, Ruby, Turing, VB and more! |
|
|
|
![](images/spacer.gif) |
JayLo
|
Posted: Sun Oct 17, 2004 9:11 pm Post subject: (No subject) |
|
|
could you post a way to do it in pure java? i'm using blueJ (any opinions on this compiler?) |
|
|
|
|
![](images/spacer.gif) |
dumplingboi
|
Posted: Sun Oct 17, 2004 11:22 pm Post subject: (No subject) |
|
|
um...im using holt's thing...whatever its called cuz its what my school has. i just need a way to clear the screen^^ |
|
|
|
|
![](images/spacer.gif) |
Hikaru79
|
Posted: Sun Oct 17, 2004 11:45 pm Post subject: (No subject) |
|
|
I think I remember seeing someone using HSA use c.clear(); . Have you tried that? |
|
|
|
|
![](images/spacer.gif) |
dumplingboi
|
Posted: Mon Oct 18, 2004 7:00 am Post subject: (No subject) |
|
|
yay ^^ works thx |
|
|
|
|
![](images/spacer.gif) |
JayLo
|
Posted: Mon Oct 18, 2004 1:58 pm Post subject: (No subject) |
|
|
how about for pure java? |
|
|
|
|
![](images/spacer.gif) |
rizzix
|
Posted: Mon Oct 18, 2004 2:23 pm Post subject: (No subject) |
|
|
code: |
Graphics gc; // assuming gc is already set
Frame frame; // assuming frame is already set
public void clearScreen() {
gc.fillrect(0,0,frame.getToolkit().getScreenSize().width, frame.getToolkit().getScreenSize().height);
}
|
and u can use it something like this:
code: |
gc.setColor(Color.WHITE);
clearScreen();
|
|
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
|