JApplet

classic Classic list List threaded Threaded
1 message Options
roroinpho21 roroinpho21
Reply | Threaded
Open this post in threaded view
|

JApplet

Salut.
Am o clasa care extinde JApplet si in ea am o clasa interioara este permis asa ceva ? Cidul este ceva de genul urmator:
class Myclass extends JApplet{
private JBUtton mybutton;

public void init (){
............
mybutton.addActionListener(new AclassListener());
}
class AclasLIstener implements ACtionListener{
public void actionPerformed(ActionEvent e){
// my code;
}
}
}

Am incercat dar nu functioneaza