File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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
Truoble with recognised custom event handler class?
What is wrong with my code?
Exam tip & a question
Form calliing other form
simple addActionListener problem