Java JFrame popupError(JFrame parent, String title, String text)

Here you can find the source of popupError(JFrame parent, String title, String text)

Description

Popup an Error message dialog

License

Open Source License

Declaration

public static void popupError(JFrame parent, String title, String text) 

Method Source Code

//package com.java2s;
//  Use is subject to license terms.

import javax.swing.JFrame;
import javax.swing.JOptionPane;

public class Main {
    /** Popup an Error message dialog */
    public static void popupError(JFrame parent, String title, String text) {
        JOptionPane.showMessageDialog(parent, text, title, JOptionPane.ERROR_MESSAGE);
    }/*from  w  w w  .j  a  v  a2 s .  c  om*/
}

Related

  1. newModalDialog(JFrame owner, String title, JPanel content, JButton... buttons)
  2. optionDialog(String title, String text, String option1, String option2, int defaultOption, JFrame parentFrame)
  3. packFrame(JFrame frame)
  4. packJFrameWindow(final JComponent comp)
  5. POPUP(JFrame frame, String message)
  6. position(JFrame f)
  7. putOnWidestScreen(JFrame frame)
  8. refreshShape(final JFrame frame)
  9. registerCloseAction(final JFrame dialog, KeyStroke keyStroke)