Java examples for Swing:JOptionPane
get Object List Dialog
//package com.java2s; import java.awt.Component; import javax.swing.JOptionPane; public class Main { public static Object getObjectListDialog(Component father, String title, String content, Object[] list) { return JOptionPane.showInputDialog(father, title, content, JOptionPane.INFORMATION_MESSAGE, null, list, null); }/*from ww w . j a v a2 s .c om*/ }