This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
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?
posted 11 years ago
>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