show Information Message Dialog - Java Swing

Java examples for Swing:JOptionPane

Description

show Information Message Dialog

Demo Code


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

public class Main {
    public static void showInformationMessage(String message) {
        JOptionPane.showMessageDialog(null, message, "Information",
                JOptionPane.INFORMATION_MESSAGE);
    }//from   w  ww  . j a v  a2s.  co  m
}

Related Tutorials