get Object List Dialog - Java Swing

Java examples for Swing:JOptionPane

Description

get Object List Dialog

Demo Code


//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*/
}

Related Tutorials