show Warning Message Dialog - Java Swing

Java examples for Swing:JOptionPane

Description

show Warning Message Dialog

Demo Code


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

public class Main {
    public static void showWarningMessage(String message) {
        JOptionPane.showMessageDialog(null, message, "Warning",
                JOptionPane.WARNING_MESSAGE);
    }// w ww .j  ava2  s . c  o  m
}

Related Tutorials