java jframe check if button is pressed

http‮l.www//:s‬autturi.com
java jframe check if button is pressed
if(jButton1.getModel().isPressed())
        System.out.println("the button is pressed");
Created Time:2017-09-10 09:33:57  Author:lautturi