Java JOptionPane Message showMessage(Component c, String msg)

Here you can find the source of showMessage(Component c, String msg)

Description

show Message

License

Apache License

Declaration

public static void showMessage(Component c, String msg) 

Method Source Code

//package com.java2s;
/*// www .j  a  va2 s .  com
 * Copyright 2006-2007 National Institute of Advanced Industrial Science
 * and Technology (AIST), and contributors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

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

public class Main {
    public static void showMessage(Component c, String msg) {
        JOptionPane.showMessageDialog(c, msg);
    }
}

Related

  1. showInput(String message)
  2. showInputInteger(String message)
  3. showInvalidJarPathMessage(String jarPath)
  4. showLog(int type, String title, String message)
  5. showMessage(Component c, String message, String title)
  6. showMessage(Component component, String message)
  7. showMessage(Component item, String title)
  8. showMessage(Component parent, String message, int messageType)
  9. showMessage(Component parent, String msg, String title, int flags)