Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00017 package com.generalrobotix.ui.util;
00018
00019 import java.awt.*;
00020 import javax.swing.*;
00021
00022
00026 @SuppressWarnings("serial")
00027 public class MessageDialog extends AlertBox {
00028 public MessageDialog(Frame owner, String caption, String message) {
00029 super(owner, caption, JOptionPane.INFORMATION_MESSAGE, OK_TYPE);
00030 setTitle(MessageBundle.get("dialog.message.title"));
00031 setCaption(caption);
00032 setMessage(message);
00033 }
00034
00035 public MessageDialog(Dialog owner, String caption, String message) {
00036 super(owner, caption, JOptionPane.INFORMATION_MESSAGE, OK_TYPE);
00037 setTitle(MessageBundle.get("dialog.message.title"));
00038 setCaption(caption);
00039 setMessage(message);
00040 }
00041
00042 public MessageDialog(Frame owner, String caption, String message, int type) {
00043 super(owner, caption, JOptionPane.INFORMATION_MESSAGE, type);
00044 setTitle(MessageBundle.get("dialog.message.title"));
00045 setCaption(caption);
00046 setMessage(message);
00047 }
00048
00049 public MessageDialog(Dialog owner, String caption, String message, int type) {
00050 super(owner, caption, JOptionPane.INFORMATION_MESSAGE, type);
00051 setTitle(MessageBundle.get("dialog.message.title"));
00052 setCaption(caption);
00053 setMessage(message);
00054 }
00055 }