View Single Post
  #1 (permalink)  
Old 06-23-2007, 02:43 AM
Heather Heather is offline
Senior Member
 
Join Date: Jun 2007
Posts: 164
Heather is on a distinguished road
Help, events in Jbutton class
I need to do an action when I do click in a button in an applet
but when I do click the button doesn't do nothing.
Code:
public boolean action(Event e,Object o) { if(e.target.equals(connec)){ openConnection(); this.panel1.setVisible(true); this.connect.setVisible(false); this.Result.setVisible(false); panel2.setVisible(true); consultPupil(); sigPupil(); showPupil(); } if(e.target.equals(sig)){ sigPupil(); showPupil(); } if(e.target.equals(ant)){ antPupil(); showPupil(); } if(e.target.equals(ult)){ ultPupil); showPupil(); } if(e.target.equals(pri)){ priPupil(); showPupil(); } return true; }
Reply With Quote
Sponsored Links