26 |
|
|
27 |
final static String UNINITIALIZED_VALUE = "uninit"; |
final static String UNINITIALIZED_VALUE = "uninit"; |
28 |
|
|
29 |
Object msg; |
// Ronald: shouldnt by public ? |
30 |
int mtype; |
public Object msg; |
31 |
int otype; |
public int mtype; |
32 |
Icon icon; |
public int otype; |
33 |
Object []args; |
public Icon icon; |
34 |
Object init; |
public Object []args; |
35 |
|
public Object init; |
36 |
|
|
37 |
JDialog dialog; |
public JDialog dialog; |
38 |
|
|
39 |
/***************************************************************************** |
/***************************************************************************** |
40 |
* |
* |
112 |
***********************************/ |
***********************************/ |
113 |
|
|
114 |
Object val; |
Object val; |
115 |
void setValue(Object v) |
public void setValue(Object v) |
116 |
{ val = v; } |
{ val = v; } |
117 |
Object getValue() |
public Object getValue() |
118 |
{ return val; } |
{ return val; } |
119 |
|
|
120 |
String getUIClassID() |
public String getUIClassID() |
121 |
{ return "JOptionPane"; } |
{ return "JOptionPane"; } |
122 |
|
|
123 |
|
|
134 |
} |
} |
135 |
|
|
136 |
|
|
137 |
AccessibleContext getAccessibleContext() |
public AccessibleContext getAccessibleContext() |
138 |
{ |
{ |
139 |
return null; |
return null; |
140 |
} |
} |
141 |
|
|
142 |
protected String paramString() |
protected String paramString() |
143 |
{ |
{ |
144 |
return "JOptionPane"; |
return "JOptionPane"; |
145 |
} |
} |
146 |
|
|
147 |
static void showMessageDialog(Component frame, |
public static void showMessageDialog(Component frame, |
148 |
String msg, |
String msg, |
149 |
String title, |
String title, |
150 |
int bla) |
int bla) |
158 |
null, |
null, |
159 |
null); |
null); |
160 |
} |
} |
161 |
static void showMessageDialog(Component frame, |
|
162 |
|
public static void showMessageDialog(Component frame, |
163 |
String msg, |
String msg, |
164 |
String title, |
String title, |
165 |
int bla, |
int bla, |
174 |
null, |
null, |
175 |
null); |
null); |
176 |
} |
} |
177 |
static void showMessageDialog(Component frame, |
|
178 |
|
public static void showMessageDialog(Component frame, |
179 |
String msg) |
String msg) |
180 |
{ |
{ |
181 |
showMessageDialog(frame, |
showMessageDialog(frame, |
184 |
} |
} |
185 |
|
|
186 |
|
|
187 |
static void showMessageDialog(Component frame, |
public static void showMessageDialog(Component frame, |
188 |
String msg, |
String msg, |
189 |
Icon icon) |
Icon icon) |
190 |
{ |
{ |
199 |
null); |
null); |
200 |
} |
} |
201 |
|
|
202 |
static int showConfirmDialog(JFrame frame, |
public static int showConfirmDialog(JFrame frame, |
203 |
String yes, |
String yes, |
204 |
String no, |
String no, |
205 |
int bla) |
int bla) |
207 |
return 0; |
return 0; |
208 |
} |
} |
209 |
|
|
210 |
static String showInputDialog(JFrame frame, |
public static String showInputDialog(JFrame frame, |
211 |
String msg, |
String msg, |
212 |
String title, |
String title, |
213 |
int opt_type, |
int opt_type, |
226 |
init); |
init); |
227 |
} |
} |
228 |
|
|
229 |
static Object showInputDialog(JFrame frame, |
public static Object showInputDialog(JFrame frame, |
230 |
String msg, |
String msg, |
231 |
String title, |
String title, |
232 |
int opt_type, |
int opt_type, |
246 |
|
|
247 |
|
|
248 |
// everybody comes here eventually |
// everybody comes here eventually |
249 |
static int showOptionDialog(Component frame, |
public static int showOptionDialog(Component frame, |
250 |
String msg, |
String msg, |
251 |
String title, |
String title, |
252 |
int opt_type, |
int opt_type, |
268 |
return a.intValue(); |
return a.intValue(); |
269 |
} |
} |
270 |
|
|
271 |
static Object DoShowOptionDialog(Component frame, |
public static Object DoShowOptionDialog(Component frame, |
272 |
String msg, |
String msg, |
273 |
String title, |
String title, |
274 |
int opt_type, |
int opt_type, |