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

Username:   Password: 
 RegisterRegister   
 colour variable
Index -> Programming, Java -> Java Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
iluvchairs112




PostPosted: Sat Jun 09, 2007 3:32 pm   Post subject: colour variable

okay so i've made a class that draws a blue circle and a red square when imported into the application (it extends JComponent)
now i want to make it so that the colours are variables and i can choose the colour of the circle and the square within the application instead of the class.
how would i do that? i've tried just playing around with it but nothing seems to work, I'm always getting errors
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  [ 1 Posts ]
Jump to:   


Style:  
Search: