well now that I look at it. It does seem that drawOval wouldnt be a class but merely a method from the graphics library.
And the way in which myPanel is used it would suggest that it is a JPanel as you said. So to make this work better I made these adjustments:
I have two problems left in my code:
C:\Documents and Settings\ben\Desktop\park>javac Oval.java
.\Oval_Sub.java:14: call to super must be first statement in constructor
super("the title");
^
.\Oval_Sub.java:28: <anonymous Oval_Sub$1> is not abstract and does not override
abstract method stateChanged(javax.swing.event.ChangeEvent) in javax.swing.even
t.ChangeListener
new ChangeListener() {
^
2 errors
I am clueless about the first one. It must be something else