
-----------------------------------
newTOjava365
Thu Nov 25, 2004 9:08 pm

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.

-----------------------------------
Hikaru79
Thu Nov 25, 2004 9:13 pm


-----------------------------------
Is this sort of what you're looking for? :  http://java.sun.com/docs/books/tutorial/uiswing/components/colorchooser.html

-----------------------------------
newTOjava365
Thu Nov 25, 2004 9:31 pm


-----------------------------------
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
Thu Nov 25, 2004 10:25 pm


-----------------------------------
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 :)

-----------------------------------
newTOjava365
Fri Nov 26, 2004 10:36 pm


-----------------------------------
i read over the code but cant figure out which part is the toggle
