2 番目のアクション リスナーを追加しようとすると、エラーが発生します。2 つの異なる JButton をセットアップして、そのうちの 1 つを正常に動作させていますが、2 つ目の JButton にアクション リスナーを追加しようとすると、次のエラーが発生します。
is not abstract and does not override abstract method actionPerformed(ActionEvent) in ActionListener
next.addActionListener(new ActionListener (){
これは 2 つのアクション リスナーのコードです。
next.addActionListener(new ActionListener (){
public void preformedAction(ActionEvent e){
}
});
close.addActionListener(new ActionListener (){
public void actionPerformed(ActionEvent event){
frame.dispose(); //Closes Window
}//End ActionPreformed
});//End Of Close Action
2 つのボタンは「次へ」と「閉じる」です