Java JOptionPane Message alert(Component component, String title, String msg)

Here you can find the source of alert(Component component, String title, String msg)

Description

alert

License

Open Source License

Declaration

public static final void alert(Component component, String title, String msg) 

Method Source Code


//package com.java2s;
import java.awt.Component;

import javax.swing.JOptionPane;

public class Main {

    public static final void alert(Component component, String title, String msg) {
        JOptionPane.showMessageDialog(component, msg, title, JOptionPane.ERROR_MESSAGE);
    }//  w  ww .  j  a v a  2  s.co  m
}

Related

  1. askPassword(String message)
  2. browse(String url, Component msgParent)
  3. browse(String url, Component msgParent)
  4. chooseIndex(String message, String messageTitle, Object[] objects, Object initialObject)