Java multiple selection dialog box
问题 I have a dialog box with a drop down menu like this: Object[] possibilities = {"1", "2", "3", "4"}; ImageIcon icon = new ImageIcon("images/middle.gif"); int i = Integer.parseInt((String)JOptionPane.showInputDialog(pane,"How Many Channels:","Reset Visible Channels", JOptionPane.PLAIN_MESSAGE,icon,possibilities,"1")); The problem is that it only lets you select one option. Instead, I would like for users to be able to select multiple options from a list that is given in the dialog box.