JOptionPane info dialog - Java Swing

Java examples for Swing:JOptionPane

Description

JOptionPane info dialog

Demo Code


//package com.java2s;
import javax.swing.JOptionPane;

public class Main {
    public static void info(String title, String msg) {
        JOptionPane.showMessageDialog(null, msg, title,
                JOptionPane.INFORMATION_MESSAGE);
    }//  w ww. java 2  s . co m
}

Related Tutorials