Java JOptionPane Warning showWarning(final Component rootComponent, final String message, final String title)

Here you can find the source of showWarning(final Component rootComponent, final String message, final String title)

Description

show Warning

License

BSD License

Declaration

public static void showWarning(final Component rootComponent, final String message, final String title) 

Method Source Code


//package com.java2s;
//License from project: BSD License 

import java.awt.Component;
import javax.swing.JOptionPane;

public class Main {
    public static void showWarning(final Component rootComponent, final String message, final String title) {
        JOptionPane.showMessageDialog(rootComponent, message, title, JOptionPane.WARNING_MESSAGE);
    }/*from  w  w  w.  j ava2 s  .  c  om*/
}

Related

  1. popupMessage(String title, String message, @SuppressWarnings("SameParameterValue") int icon)
  2. popupPrompt(String title, String message, @SuppressWarnings("SameParameterValue") String[] choices, String defaultOption)
  3. showPrettyWarningPromptPane(Component caller, String msg)
  4. showWarning(Component owner, String msg)
  5. showWarning(Component parent, String title, String message)
  6. showWarning(final String message)
  7. showWarning(String message)
  8. showWarning(String message)
  9. showWarningBox(Component pParent, String pMessage, String pTitle)