Here you can find the source of showMessage(String title, String message)
Parameter | Description |
---|---|
message | The message to display |
public static void showMessage(String title, String message)
//package com.java2s; /*/*from w w w .j a v a 2 s .c om*/ * Copyright (c) 1998 - 2005 Versant Corporation * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors: * Versant Corporation - initial API and implementation */ import javax.swing.*; public class Main { /** * Display a sample message in a dialog box. * @param message The message to display */ public static void showMessage(String title, String message) { JOptionPane.showMessageDialog(null, message, title, JOptionPane.INFORMATION_MESSAGE); } }