public static final String OPENROCKET_URL = "http://openrocket.sourceforge.net/";
-
+
public AboutDialog(JFrame parent) {
super(parent, true);
JPanel panel = new JPanel(new MigLayout("fill"));
- panel.add(new JLabel(Icons.loadImageIcon("pix/icon/icon-about.png", "OpenRocket")),
+ panel.add(new JLabel(Icons.loadImageIcon("pix/icon/icon-about.png", "OpenRocket")),
"spany 5, top");
panel.add(new StyledLabel("OpenRocket", 20), "ax 50%, growy, wrap para");
panel.add(new StyledLabel("Version " + version, 3), "ax 50%, growy, wrap rel");
-// String source = Prefs.getBuildSource();
-// if (!Prefs.DEFAULT_BUILD_SOURCE.equalsIgnoreCase(source)) {
-// panel.add(new StyledLabel("Distributed by " + source, -1),
-// "ax 50%, growy, wrap para");
-// } else {
-// panel.add(new StyledLabel(" ", -1), "ax 50%, growy, wrap para");
-// }
+ // String source = Prefs.getBuildSource();
+ // if (!Prefs.DEFAULT_BUILD_SOURCE.equalsIgnoreCase(source)) {
+ // panel.add(new StyledLabel("Distributed by " + source, -1),
+ // "ax 50%, growy, wrap para");
+ // } else {
+ // panel.add(new StyledLabel(" ", -1), "ax 50%, growy, wrap para");
+ // }
- panel.add(new StyledLabel("Copyright " + Chars.COPY +" 2007-2010 Sampo Niskanen"),
+ panel.add(new StyledLabel("Copyright " + Chars.COPY + " 2007-2011 Sampo Niskanen"),
"ax 50%, growy, wrap para");
panel.add(new URLLabel(OPENROCKET_URL), "ax 50%, growy, wrap para");
GUIUtil.setDisposableDialogOptions(this, close);
}
-
+
}
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
-import javax.swing.JSeparator;
import javax.swing.JSplitPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;
item.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
+ log.user("Print action selected");
printAction();
}
});
*
*/
public void printAction() {
+ if (!Prefs.getBoolean("printing.experimental.communicated", false)) {
+ log.info("Showing printing is experimental warning to the user");
+ JOptionPane.showMessageDialog(this, "Printing is an currently an experimental feature " +
+ "and might not fully work on all platforms",
+ "Experimental feature", JOptionPane.WARNING_MESSAGE);
+ Prefs.putBoolean("printing.experimental.communicated", true);
+ }
new PrintDialog(document);
}