Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
What exactly doesn't work? Have you looked in the debugger? Deliver banal System.out.println
Give more information.
//добавляем слушатель действий для альфа
alpha.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae){
System.out.println("В аннонимом классе");
lab.setText("Нажата кнопка Альфа");
}
});
actionPerfomend
should beactionPerformed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question