How i can create an Inputbox with combobox in it? In java Tutorial i 've finded this sampleBut how i can identify the ICOn ? Can i use a string array instead object []?Code:Object[] possibilities = {"ham", "spam", "yam"};
String s = (String)JOptionPane.showInputDialog(
frame,
"Complete the sentence:\n"
+ "\"Green eggs and...\"",
"Customized Dialog",
JOptionPane.PLAIN_MESSAGE,
icon,
possibilities,
"ham");

