Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
netbeans のボタンにアクションリスナーを追加する方法
やってみたけどやり方がわからない
button.addactionlistener(null);
まず、クラスにアクション リスナーを実装する必要があります。
public class YourProject extends JFrame implements ActionListener{ yourbutton.addActionListener(this);
オーバーライド メソッドを追加する必要があります。
これがお役に立てば幸いです。