Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ButtonHandler issue

 
Dmitri Mayer
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
>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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic