MainClass.java Source code

Java tutorial

Introduction

Here is the source code for MainClass.java

Source

import javax.swing.JDialog;
import javax.swing.JOptionPane;

public class MainClass {

    public static void main(String[] a) {
        JOptionPane optionPane = new JOptionPane("Continue printing?", JOptionPane.QUESTION_MESSAGE,
                JOptionPane.YES_NO_OPTION);
        JDialog dialog = optionPane.createDialog(null, "Manual Creation");
        dialog.setVisible(true);
    }
}