Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-23-2007, 02:43 AM
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; }
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-30-2007, 05:24 PM
Senior Member
 
Join Date: Jun 2007
Posts: 119
Peter is on a distinguished road
You have to call the updateUI() method of the panel that contains the components and then visualize them
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 06-30-2007, 05:32 PM
Ed Ed is offline
Senior Member
 
Join Date: Jun 2007
Posts: 110
Ed is on a distinguished road
this example will help you
Java Applet Tutorial - ActionListener Example
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
SWT Events JavaForums Java Blogs 0 12-31-2007 05:53 PM
Call action of JButton from another class geckolux AWT / Swing 1 12-17-2007 02:41 PM
Need Help With Button Events adlb1300 New To Java 5 11-03-2007 06:36 AM
Help with keyboard events? Bibendum New To Java 2 11-02-2007 03:51 AM
To capture events with struts Ed Web Frameworks 2 07-04-2007 07:01 AM


All times are GMT +3. The time now is 03:52 AM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org