This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum 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
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "ButtonHandler issue" Watch "ButtonHandler issue" New topic
Author

ButtonHandler issue

Dmitri Mayer
Greenhorn

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ButtonHandler issue
 
Similar Threads
simple addActionListener problem
Truoble with recognised custom event handler class?
Exam tip & a question
Form calliing other form
What is wrong with my code?