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

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




PostPosted: Thu Nov 25, 2004 9:08 pm   Post subject: toggles

how do i make a toggle for choosing a color in a paint program, where the user will move the bar across to change the amount of red,blue,green in the color.
Sponsor
Sponsor
Sponsor
sponsor
Hikaru79




PostPosted: Thu Nov 25, 2004 9:13 pm   Post subject: (No subject)

Is this sort of what you're looking for? : http://java.sun.com/docs/books/tutorial/uiswing/components/colorchooser.html
newTOjava365




PostPosted: Thu Nov 25, 2004 9:31 pm   Post subject: (No subject)

not really, i was thinking more about a bar

[ / ]

where the / can be dragged across the bar [ ] to make it more or less a certain color ie. red, blue or green
Hikaru79




PostPosted: Thu Nov 25, 2004 10:25 pm   Post subject: (No subject)

Yes, that's what that is. If you go to the "RGB" tab, it's exactly that. Try it by running the demo they have on the site using WebStart and just going to the "RGB" tab. Trust me, this is *exactly* what you want Smile
newTOjava365




PostPosted: Fri Nov 26, 2004 10:36 pm   Post subject: (No subject)

i read over the code but cant figure out which part is the toggle
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  [ 5 Posts ]
Jump to:   


Style:  
Search: