if (e.getSource() == btnHOLD ){
btnHOLD1.setLabel("Held ");
btnHOLD1.setBackground(Color.yellow);
Here i have changed the btn hold to label held
my question is how do i switch it back to btnhold thanks




Posted 07 December 2012 - 08:09 AM
if (e.getSource() == "hold1" ){//the label before clicking btnhold was hold1
btnHOLD1.setLabel("Held 1");//A user click on btn hold the label changes to held1 and background to yellow
btnHOLD1.setBackground(Color.yellow);
Posted 07 December 2012 - 08:10 AM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
