equal
deleted
inserted
replaced
18 * |
18 * |
19 * CDDL HEADER END |
19 * CDDL HEADER END |
20 */ |
20 */ |
21 |
21 |
22 /* |
22 /* |
23 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
23 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. |
24 * Use is subject to license terms. |
|
25 */ |
24 */ |
26 |
25 |
27 package org.opensolaris.os.vp.util.misc; |
26 package org.opensolaris.os.vp.util.misc; |
28 |
27 |
29 import javax.swing.JOptionPane; |
28 import javax.swing.JOptionPane; |
46 * |
45 * |
47 * @param text |
46 * @param text |
48 * the message text |
47 * the message text |
49 * |
48 * |
50 * @param type |
49 * @param type |
51 * JoptionPane.ERROR_MESSAGE, |
50 * JOptionPane.ERROR_MESSAGE, |
52 * JoptionPane.INFORMATION_MESSAGE, |
51 * JOptionPane.INFORMATION_MESSAGE, |
53 * JoptionPane.WARNING_MESSAGE, |
52 * JOptionPane.WARNING_MESSAGE, |
54 * JoptionPane.QUESTION_MESSAGE, or |
53 * JOptionPane.QUESTION_MESSAGE, or |
55 * JoptionPane.PLAIN_MESSAGE |
54 * JOptionPane.PLAIN_MESSAGE |
56 */ |
55 */ |
57 public DialogMessage(String text, int type) { |
56 public DialogMessage(String text, int type) { |
58 this.text = text; |
57 this.text = text; |
59 this.type = type; |
58 this.type = type; |
60 } |
59 } |