Java JOptionPane Message message(String s)

Here you can find the source of message(String s)

Description

message

License

Open Source License

Declaration

public static void message(String s) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 * Copyright (c) 2001, 2007 Mathew A. Nelson and Robocode contributors
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Common Public License v1.0
 * which accompanies this distribution, and is available at
 * http://robocode.sourceforge.net/license/cpl-v10.html
 *
 * Contributors:/*  w ww  .j ava 2 s.  c  o m*/
 *     Mathew A. Nelson
 *     - Initial API and implementation
 *     Flemming N. Larsen
 *     - Moved window related methods from robocode.util.Utils into this class
 *******************************************************************************/

import javax.swing.JOptionPane;

public class Main {
    public static void message(String s) {
        JOptionPane.showMessageDialog(null, s, "Message", JOptionPane.INFORMATION_MESSAGE);
    }
}

Related

  1. input(String message, String title)
  2. inputMessage(String str1)
  3. log(String msg)
  4. message(Component comp, String title, String message)
  5. message(String s)
  6. messageBox(String s)
  7. msg(int options, String title, String msg, String item, String sep)
  8. Msg(JComponent parent, Object message)
  9. msg(String msg)