check if jbutton is pressed java 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");