|
From: Jim V. <jim...@us...> - 2002-06-17 20:10:08
|
Update of /cvsroot/swapdv/swapdv
In directory usw-pr-cvs1:/tmp/cvs-serv12123
Modified Files:
aboutDialog.java aboutDialog.form
Log Message:
calling setUndecorated() in a try block, to prevent noSuchMethod
exceptions from making the dialog undisplayable on Java < 1.4.
Index: aboutDialog.java
===================================================================
RCS file: /cvsroot/swapdv/swapdv/aboutDialog.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- aboutDialog.java 14 Jun 2002 22:23:48 -0000 1.2
+++ aboutDialog.java 17 Jun 2002 20:10:01 -0000 1.3
@@ -17,6 +17,9 @@
/** Creates new form aboutFrame */
public aboutDialog() {
+ try {
+ setUndecorated(true); // didn't exist prior to 1.4
+ } catch (Exception e) {} // ignore
initComponents();
// Install the current version label and establish modality
@@ -26,7 +29,7 @@
titleLabel.setIcon(swapdv.SwapDV.getSwapDV().iconSwapdv32);
// Layout the panel
- this.pack();
+ this.pack();
//this.setSize(400, 250);
Dimension theScreen = Toolkit.getDefaultToolkit().getScreenSize();
Dimension theFrame = this.getSize();
@@ -51,7 +54,6 @@
setTitle("About SwapDV");
setResizable(false);
- setUndecorated(true);
aboutPanel.setLayout(new java.awt.GridBagLayout());
java.awt.GridBagConstraints gridBagConstraints1;
Index: aboutDialog.form
===================================================================
RCS file: /cvsroot/swapdv/swapdv/aboutDialog.form,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- aboutDialog.form 14 Jun 2002 22:23:48 -0000 1.2
+++ aboutDialog.form 17 Jun 2002 20:10:01 -0000 1.3
@@ -4,7 +4,6 @@
<Properties>
<Property name="title" type="java.lang.String" value="About SwapDV"/>
<Property name="resizable" type="boolean" value="false"/>
- <Property name="undecorated" type="boolean" value="true"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="menuBar" type="java.lang.String" value="(No Menu)"/>
@@ -15,6 +14,9 @@
<SyntheticProperty name="generateSize" type="boolean" value="true"/>
<SyntheticProperty name="generateCenter" type="boolean" value="true"/>
</SyntheticProperties>
+
+ <AuxValues>
+ </AuxValues>
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
<SubComponents>
|