Results 1 to 3 of 3
Thread: Class is not compiling!
- 01-27-2012, 09:29 AM #1
Member
- Join Date
- Jan 2012
- Posts
- 4
- Rep Power
- 0
Class is not compiling!
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!
- 01-27-2012, 09:34 AM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,375
- Blog Entries
- 7
- Rep Power
- 17
Re: Class is not compiling!
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 01-30-2012, 05:26 AM #3
Member
- Join Date
- Jan 2012
- Posts
- 4
- Rep Power
- 0
Similar Threads
-
Compiling(Building) Changes(fixes) .class while I don't need that.
By KamikadZee in forum EclipseReplies: 2Last Post: 10-24-2011, 01:39 PM -
compiling .java into .class
By khp in forum Advanced JavaReplies: 4Last Post: 06-29-2009, 02:52 PM -
not compiling a copy of class -
By itaipee in forum EclipseReplies: 0Last Post: 01-07-2009, 09:47 AM -
Compiling a single class
By ROSOBORONEXPORTCORP in forum New To JavaReplies: 2Last Post: 01-28-2008, 12:27 PM -
Compiling a class in a package from cmd
By Java Tip in forum Java TipReplies: 0Last Post: 12-17-2007, 10:27 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks