Computer Science Canada

is there a cls command in java like in turing??

Author:  dumplingboi [ 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??

Author:  Dan [ Sun Oct 17, 2004 8:54 pm ]
Post subject: 

are u using RTP? is this in the console? more info is needed.....

Author:  JayLo [ Sun Oct 17, 2004 9:11 pm ]
Post subject: 

could you post a way to do it in pure java? i'm using blueJ (any opinions on this compiler?)

Author:  dumplingboi [ Sun Oct 17, 2004 11:22 pm ]
Post 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^^

Author:  Hikaru79 [ Sun Oct 17, 2004 11:45 pm ]
Post subject: 

I think I remember seeing someone using HSA use c.clear(); . Have you tried that?

Author:  dumplingboi [ Mon Oct 18, 2004 7:00 am ]
Post subject: 

yay ^^ works thx

Author:  JayLo [ Mon Oct 18, 2004 1:58 pm ]
Post subject: 

how about for pure java?

Author:  rizzix [ Mon Oct 18, 2004 2:23 pm ]
Post 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();


: