Java JFrame Parent oops(Frame parent, String s)

Here you can find the source of oops(Frame parent, String s)

Description

Oops message.

License

GNU General Public License

Parameter

Parameter Description
s the message

Declaration

public static void oops(Frame parent, String s) 

Method Source Code

//package com.java2s;
/**/*from   w w w .  j ava2s . co m*/
 *    Copyright (C)  DataMelt project. The jHPLot package.
 *    Includes coding developed for Centre d'Informatique Geologique
 *    by J.V.Lee priory 2000 GNU license.
 *
 *    This program is free software; you can redistribute it and/or modify it under the terms
 *    of the GNU General Public License as published by the Free Software Foundation; either
 *    version 3 of the License, or any later version.
 *
 *    This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 *    without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 *    See the GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License along with this program;
 *    if not, see <http://www.gnu.org/licenses>.
 *
 *    Additional permission under GNU GPL version 3 section 7:
 *    If you have received this program as a library with written permission from the DataMelt team,
 *    you can link or combine this library with your non-GPL project to convey the resulting work.
 *    In this case, this library should be considered as released under the terms of
 *    GNU Lesser public license (see <https://www.gnu.org/licenses/lgpl.html>),
 *    provided you include this license notice and a URL through which recipients can access the
 *    Corresponding Source.
 **/

import javax.swing.*;

import java.awt.*;

public class Main {
    /**
     * Oops message. Shows a message dialog box with a specified message.
     * 
     * @param s
     *            the message
     */
    public static void oops(Frame parent, String s) {
        JOptionPane.showMessageDialog(parent, s, "Oops", JOptionPane.INFORMATION_MESSAGE);
    }
}

Related

  1. getRootFrame(JComponent component)
  2. getSpssInstallationDirectory(Frame parent)
  3. installOperation(final RootPaneContainer frame, final int condition, final KeyStroke keyStroke, final String actionKey, Action action)
  4. isFrameModified(RootPaneContainer frame)
  5. okToWriteFile(Frame parent, String fileName)
  6. rootFrame(@Nonnull Component component)
  7. runProgressDialog(Runnable runnable, Frame parentFrame, String title, int count)
  8. setFrameParentTitle(Container c, String s)
  9. showDialog(Frame aParent, String aMsg, String aTitle, int aType)