This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes ButtonHandler issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ButtonHandler issue" Watch "ButtonHandler issue" New topic

ButtonHandler issue

Dmitri Mayer

Joined: Jan 05, 2005
Posts: 8
When we use
public class ButtonHandler implements ActionListener
in a separate class file to get the userid and password, we'd like to know if the login was successful. We want to create a boolean class variable success. But whenever we try to move control from the login class to the ButtonHandler class, success returns before ActionListener is run. What should we do?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
>What should we do?

Hard to say without seeing any code.

Here's something to play around with - it's rough - but it might give you a
couple of ideas

Don't get me started about those stupid light bulbs.
subject: ButtonHandler issue
Similar Threads
simple addActionListener problem
What is wrong with my code?
Exam tip & a question
Truoble with recognised custom event handler class?
Form calliing other form