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", ...