how to check if a person pressed a buuton in jframe code example
Example: how to check if a person pressed a buuton in jframe
if(jButton1.getModel().isPressed())
System.out.println("the button is pressed");
if(jButton1.getModel().isPressed())
System.out.println("the button is pressed");