updates for 0.9.4
[debian/openrocket] / src / net / sf / openrocket / gui / dialogs / LicenseDialog.java
index 92144db77766d0e9a66cc44d175ee0c43006e522..10759a69f3e7e62cde008ed600857a5c8fd47bd0 100644 (file)
@@ -14,7 +14,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 +32,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 {
@@ -72,8 +72,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);
        }
        
 }