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