i need some advice on JDialog stuff.
I need to catch the "input" data, and i am wondering, what is the best way to do it. Ok, here is complete problem. When user clicks the button (located on JFrame), JDialog pops out, and there are 3 text fields for entrys and one combo box. After user presses ok, i need to return those data in JFrame. Well, i can do this on my way, but thats too much of spaghetti code :)) What listener should i use? And if you are willing to give me code example i would be thankful :)