Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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

public class Main {

    public static void main(String argv[]) {
        String message = "line\n" + "line 2\n" + "line 3";
        JOptionPane.showMessageDialog(new JFrame(), message, "Dialog", JOptionPane.ERROR_MESSAGE);
    }
}