Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 is there a cls command in java like in turing??
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
dumplingboi




PostPosted: 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??
Sponsor
Sponsor
Sponsor
sponsor
Dan




PostPosted: 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!
JayLo




PostPosted: 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?)
dumplingboi




PostPosted: 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^^
Hikaru79




PostPosted: 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?
dumplingboi




PostPosted: Mon Oct 18, 2004 7:00 am   Post subject: (No subject)

yay ^^ works thx
JayLo




PostPosted: Mon Oct 18, 2004 1:58 pm   Post subject: (No subject)

how about for pure java?
rizzix




PostPosted: 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();
Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Java -> Java Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 8 Posts ]
Jump to:   


Style:  
Search: