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

