Skip to main content

Making a program wait for a button press on jFrame

No replies
Joined: 2011-09-16
Points: 0


I have an applet. There is some data in this applet, which end-users can modify and then applet will process it. I have create a SWING UI to do the editing.

For this I created another class, coded jFrame in it, and invoked it from my applet. It works alright but doesn't wait for button press on jFrame.

I want it to wait for button-click, get the returned data from jFrame class and use that.

Please tell me how can I do that.