Computer Science Canada

toggles

Author:  newTOjava365 [ 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.

Author:  Hikaru79 [ Thu Nov 25, 2004 9:13 pm ]
Post subject: 

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

Author:  newTOjava365 [ Thu Nov 25, 2004 9:31 pm ]
Post 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

Author:  Hikaru79 [ Thu Nov 25, 2004 10:25 pm ]
Post 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

Author:  newTOjava365 [ Fri Nov 26, 2004 10:36 pm ]
Post subject: 

i read over the code but cant figure out which part is the toggle


: