This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I have a requirement to read details on a JDialog (called program) and then returning back to parent JFrame (calling program) so that details can be added to into a JTable (which is on JFrame) . Any help on how to pass data from JDialog to parent JFrame. I think making JTable "public static" is an option. However I would like to understand if any other better option can be drawn.
JOptionPane lends itself easily to complexity.
If you notice, the showInputDialog, in its many forms, accepts an Object message. You can leverage on this to create any complex UI container and pass it on to the message.
Does your requirement make it still impossible for you to useJOptionPane? If yes, maybe you can tell us why you think so and we can try and help you.