Updates for 0.9.5
[debian/openrocket] / src / net / sf / openrocket / gui / dialogs / LicenseDialog.java
index 92144db77766d0e9a66cc44d175ee0c43006e522..19ad7fe213c326135e16bf30c7d64b92d7519f65 100644 (file)
@@ -4,6 +4,7 @@ import java.awt.Font;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
 import java.io.BufferedReader;
+import java.io.IOException;
 import java.io.InputStreamReader;
 
 import javax.swing.JButton;
@@ -14,7 +15,7 @@ import javax.swing.JScrollPane;
 import javax.swing.JTextArea;
 
 import net.miginfocom.swing.MigLayout;
-import net.sf.openrocket.gui.components.ResizeLabel;
+import net.sf.openrocket.gui.components.StyledLabel;
 import net.sf.openrocket.util.GUIUtil;
 
 public class LicenseDialog extends JDialog {
@@ -32,7 +33,7 @@ public class LicenseDialog extends JDialog {
                
                JPanel panel = new JPanel(new MigLayout("fill"));
                
-               panel.add(new ResizeLabel("OpenRocket license", 10), "ax 50%, wrap para");
+               panel.add(new StyledLabel("OpenRocket license", 10), "ax 50%, wrap para");
 
                String licenseText;
                try {
@@ -46,7 +47,7 @@ public class LicenseDialog extends JDialog {
                        }
                        licenseText = sb.toString();
                        
-               } catch (Exception e) {
+               } catch (IOException e) {
 
                        licenseText = DEFAULT_LICENSE_TEXT;
                        
@@ -72,8 +73,8 @@ public class LicenseDialog extends JDialog {
                this.setTitle("OpenRocket license");
                this.pack();
                this.setLocationRelativeTo(parent);
-               GUIUtil.setDefaultButton(close);
-               GUIUtil.installEscapeCloseOperation(this);
+               
+               GUIUtil.setDisposableDialogOptions(this, close);
        }
        
 }