01: /*
02: * Copyright 2001-2007 Geert Bevin <gbevin[remove] at uwyn dot com>
03: * Distributed under the terms of either:
04: * - the common development and distribution license (CDDL), v1.0; or
05: * - the GNU Lesser General Public License, v2.1 or later
06: * $Id: JDialogSystemError.java 3634 2007-01-08 21:42:24Z gbevin $
07: */
08: package com.uwyn.rife.swing;
09:
10: import com.uwyn.rife.tools.Localization;
11: import javax.swing.JFrame;
12:
13: public class JDialogSystemError extends JDialogError {
14: private static final long serialVersionUID = 6710056639278804474L;
15:
16: public JDialogSystemError(JFrame frame, String errorString) {
17: super (frame, Localization
18: .getString("rife.dialog.systemerror.title"),
19: new JMultiLabel(errorString, null == frame ? 0 : (frame
20: .getSize().width / 3) * 2));
21: }
22: }
|