📜  单击时的 java swing 按钮 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:03.760000             🧑  作者: Mango

代码示例1
JButton b = new JButton("push me");
b.addActionListener(new ActionListener() {

    @Override
    public void actionPerformed(ActionEvent e) {
        //your actions
    }
});