Monday, May 12, 2008

Bringing out a ComboBox selection in JOptionPane..

String[] test = {"Java", "Swing", "RCP"};
JOptionPane.showInputDialog(this, "Select Technology", "OptionPaneTitle", JOptionPane.INFORMATION_MESSAGE, icon, test, "Java");

This should bring you an input dialog and the return type would be the selected object...

No comments: