updates for 0.9.4
[debian/openrocket] / src / net / sf / openrocket / gui / dialogs / LicenseDialog.java
index bc718d6d883758dcfff33cd870c3e6152795d794..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 {
@@ -71,9 +71,9 @@ public class LicenseDialog extends JDialog {
                this.add(panel);
                this.setTitle("OpenRocket license");
                this.pack();
-               this.setLocationByPlatform(true);
-               GUIUtil.setDefaultButton(close);
-               GUIUtil.installEscapeCloseOperation(this);
+               this.setLocationRelativeTo(parent);
+               
+               GUIUtil.setDisposableDialogOptions(this, close);
        }
        
 }