Results 1 to 3 of 3
Thread: Help, events in Jbutton class
- 06-23-2007, 01:43 AM #1
Senior Member
- Join Date
- Jun 2007
- Posts
- 164
- Rep Power
- 6
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.
Java 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; }
- 06-30-2007, 04:24 PM #2
Senior Member
- Join Date
- Jun 2007
- Posts
- 119
- Rep Power
- 0
You have to call the updateUI() method of the panel that contains the components and then visualize them
;)
- 06-30-2007, 04:32 PM #3
Senior Member
- Join Date
- Jun 2007
- Posts
- 110
- Rep Power
- 0
Similar Threads
-
Call action of JButton from another class
By geckolux in forum AWT / SwingReplies: 1Last Post: 12-17-2007, 01:41 PM -
Need Help With Button Events
By adlb1300 in forum New To JavaReplies: 5Last Post: 11-03-2007, 05:36 AM -
Help with keyboard events?
By Bibendum in forum New To JavaReplies: 2Last Post: 11-02-2007, 02:51 AM -
To capture events with struts
By Ed in forum Web FrameworksReplies: 2Last Post: 07-04-2007, 06:01 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks