0
I have two JButton
in my window, btnCalcular
and btnConfirmar
.
The btnCalcular
calculates some window values, and the btnConfirmar
take these values and store them elsewhere. The point is that obligatorily I want to leave the btnConfirmar
deactivated while the other button is not clicked, so it does not save null values.
I’ve tried the while (btnCalcular.getClickCount() > 0){...}
but the IDE did not recognize, even though I put this condition within one of the methods of a MouseListener
.
How to do this ?