It sounds like you're trying to turn a naturally object oriented and event driven model and forcing it to be sequential. This is very difficult to do, and a rather poor GUI design (it can lead to...
Type: Posts; User: helloworld922
It sounds like you're trying to turn a naturally object oriented and event driven model and forcing it to be sequential. This is very difficult to do, and a rather poor GUI design (it can lead to...
Sounds like you want to listen for action events for when the JButton gets clicked. See: How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)