Re: Toggle (i.e. activate/deactivate) a java swing button

2021-11-26 Thread Mithat Karaoglu
You can try to change the line if (btnCallIntrest.setEnabled(true) To if(btnCallInterest.isEnabled()) = Mithat Karaoglu Email: mithat.karao...@gmail.com On Fri, Nov 26, 2021 at 10:22 PM Zulfi Khan wrote: > Hi, > > I have written the following code: > > private void savAccRBActionPer

Toggle (i.e. activate/deactivate) a java swing button

2021-11-26 Thread Zulfi Khan
Hi, I have written the following code: private void savAccRBActionPerformed(java.awt.event.ActionEvent evt) {           // TODO add your handling code here:     if (btnCalInterest.setEnabled(true))     btnCalInterest.setEnabled(false); I am getti