I was hoping someone could help me out with something simple in Java. I'm trying to create a paint program using java.awt & java.swing. I have this program loading up a jpg and creating a paint layer over it that I can draw on. I'm trying to implement an RGB color picker consisting of 3 sliders (Yes I know there is a built in color picker but I need to implement it with the 3 RGB sliders). I created a seperate class called color pick that contrains the 3 sliders and my main class is instantiating this. What I don't know is how to make the main file get the color from this other colorpick class. The drawing is using a class called myPrimitive which at the moment is just a rectangle and the color is passed in through there. My code is here:
http://www.dealdonkey.com/memo/cs354/project1
if anyone could help I'd greatly appreciate it!!!
TIA
Memo




Reply With Quote




Bookmarks