Using a ChangeListener with a JFrame

Hi.

I have created an applet which in itself produces a new JFrame. In the JFrame i have Jsliders and i want a label to change with the value of the slider. i have done this

public class Partcreateframe extends JFrame implements ChangeListener{

in the code i add a listener to the slider and then get the value of the slider and pass it to alabel but when i compile i get this error message

C:\j2sdk1.4.2_10\bin>javac Demo.java

C:\j2sdk1.4.2_10\bin\Partcreateframe.java:8: Partcreateframe is not abstract and

does not override abstract method stateChanged(javax.swing.event.ChangeEvent) i

n javax.swing.event.ChangeListener

public class Partcreateframe extends JFrame implements ChangeListener{

^

1 error

can anyone shed any light?

thx

[818 byte] By [foohoo_bluea] at [2007-10-2 10:36:38]
# 1
If you state "implements ChangeListener", you must actually implement the methods defined by the ChangeListener interface.
da.futta at 2007-7-13 2:39:51 > top of Java-index,Java Essentials,Java Programming...
# 2
I have a public void stateChange (ChangeEvent evt){is that all i have to do?dex
foohoo_bluea at 2007-7-13 2:39:51 > top of Java-index,Java Essentials,Java Programming...
# 3
> I have a > > public void stateChange (ChangeEvent evt){> > is that all i have to do?> > dexpublic void stateChanged(ChangeEvent e), that is.
da.futta at 2007-7-13 2:39:52 > top of Java-index,Java Essentials,Java Programming...
# 4
I AM AN IDIOT!!YOU ARE NOT!!
foohoo_bluea at 2007-7-13 2:39:52 > top of Java-index,Java Essentials,Java Programming...
# 5
> I AM AN IDIOT!!> > YOU ARE NOT!!Hey -- great, that's something I always wondered about.:)
da.futta at 2007-7-13 2:39:52 > top of Java-index,Java Essentials,Java Programming...