Hello, I am having to write a program and to describe it simply I basically have to choose between a list of shapes to display (initial shape is a point, shapes are described in subclasses), then choose from a JComboBox its color and control its size using a slider.
I attached the code.
The class is not compiling though and I know the reasons why because java is telling me (there may be more):
-The class is not abstract and does not override abstract method stateChanged in ChangeListener (I need the interface ChangeListener for my slider!)
-Method setColor(java.awt.Color) has not been declared (not sure how/what I should declare)
But I don't know how to fix them...I would really appreciate if you can help me out with that!
These are probably rather silly questions, I am a beginner to java and I have to write a program that is beyond my level now
Thanks in advance!