BigValueJOptionpaneDialog.java Source code

Java tutorial

Introduction

Here is the source code for BigValueJOptionpaneDialog.java

Source

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class BigValueJOptionpaneDialog {

    public static void main(String[] a) {
        JFrame frame = new JFrame();
        String bigList[] = new String[30];

        for (int i = 0; i < bigList.length; i++) {
            bigList[i] = Integer.toString(i);
        }

        JOptionPane.showInputDialog(frame, "Pick a printer", "Input", JOptionPane.QUESTION_MESSAGE, null, bigList,
                "Titan");

    }

}