1. 26.
    0
    panpa şimdi hatırlayamadım tam ama bi kere o class actionlistener i implement edecek.
    ondan sonra bu butonlara tıklandığında bir fonk. çalışsın istiyorsun değil mi? şuna bi bak

    //Declare an event handler class and specify that the class either implements an ActionListener interface or extends a //class that implements an ActionListener interface. For example:

    public class MyClass implements ActionListener {

    //Register an instance of the event handler class as a listener on one or more components. For example:

    someComponent. addActionListener(instanceOfMyClass); //senin örneğinde creditButton. addactionListener(this);

    Include code that implements the methods in listener interface. For example:

    public void actionPerformed(ActionEvent e) {
    ... //code that reacts to the action...
    }
    ···
   tümünü göster