Java JButton check if button was clicked

Java JButton check if button was clicked
JButton button = new JButton("Press me");
button.addActionListener( new ActionListener()
{
    @Override
    public void actionPerformed(ActionEvent e)
    {
        System.out.println("The button is clicked");
    }
});
S‮cruo‬e:www.lautturi.com
Created Time:2017-09-18 20:38:20  Author:lautturi