Select « Dialog « Java Swing Q&A





1. Java multiple selection dialog box    stackoverflow.com

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

2. Select directory dialog    coderanch.com