MessageDialog.java
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2008, AIST, the University of Tokyo and General Robotix Inc.
3  * All rights reserved. This program is made available under the terms of the
4  * Eclipse Public License v1.0 which accompanies this distribution, and is
5  * available at http://www.eclipse.org/legal/epl-v10.html
6  * Contributors:
7  * General Robotix Inc.
8  * National Institute of Advanced Industrial Science and Technology (AIST)
9  */
17 package com.generalrobotix.ui.util;
18 
19 import java.awt.*;
20 import javax.swing.*;
21 
22 
26 @SuppressWarnings("serial")
27 public class MessageDialog extends AlertBox {
28  public MessageDialog(Frame owner, String caption, String message) {
29  super(owner, caption, JOptionPane.INFORMATION_MESSAGE, OK_TYPE);
30  setTitle(MessageBundle.get("dialog.message.title"));
31  setCaption(caption);
32  setMessage(message);
33  }
34 
35  public MessageDialog(Dialog owner, String caption, String message) {
36  super(owner, caption, JOptionPane.INFORMATION_MESSAGE, OK_TYPE);
37  setTitle(MessageBundle.get("dialog.message.title"));
38  setCaption(caption);
39  setMessage(message);
40  }
41 
42  public MessageDialog(Frame owner, String caption, String message, int type) {
43  super(owner, caption, JOptionPane.INFORMATION_MESSAGE, type);
44  setTitle(MessageBundle.get("dialog.message.title"));
45  setCaption(caption);
46  setMessage(message);
47  }
48 
49  public MessageDialog(Dialog owner, String caption, String message, int type) {
50  super(owner, caption, JOptionPane.INFORMATION_MESSAGE, type);
51  setTitle(MessageBundle.get("dialog.message.title"));
52  setCaption(caption);
53  setMessage(message);
54  }
55 }
static final String get(String key)
MessageDialog(Frame owner, String caption, String message, int type)
png_infop png_charp png_int_32 png_int_32 int * type
Definition: png.h:2332
MessageDialog(Dialog owner, String caption, String message)
MessageDialog(Frame owner, String caption, String message)
MessageDialog(Dialog owner, String caption, String message, int type)


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Sat Apr 13 2019 02:14:24