Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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
Exam tip & a question
Truoble with recognised custom event handler class?
Form calliing other form
What is wrong with my code?
simple addActionListener problem