I have a JFrame, and when a button is clicked, it needs to pop up a custom JDialog. In this JDialog, a user inputs data and clicks ok to pass the data back to the JFrame, so it can be saved off. I can do this using Flex/Actionscript 3.0, but can't figure out how to get it working in
Java. Below are code fragments from AS3.0.