I have a class called "MyDialog" which is basically a JPanel with 2 textfields and a checkbox in a JFrame
I want to use "JOptionPane.showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object options, Object initialValue)" in the my main class and pass an instance of "MyDialog" as "Object message" but I have ended really confused and frustrated. Anyone who can bail me out?
posted 13 years ago
You might consider either the hybrid or dialog options shown below. The static convenience method will require more work to extract the data from your components.