Merge pull request #1118 from SiboVG/fix-about-dialog
Fix about dialog layout issues
This commit is contained in:
commit
afc875cb5f
@ -8,6 +8,7 @@ import javax.swing.JDialog;
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.JPanel;
|
||||
import javax.swing.UIManager;
|
||||
|
||||
import net.miginfocom.swing.MigLayout;
|
||||
import net.sf.openrocket.gui.components.DescriptionArea;
|
||||
@ -102,7 +103,7 @@ public class AboutDialog extends JDialog {
|
||||
sub.add(new StyledLabel(copyright), "ax 50%, growy, wrap para");
|
||||
|
||||
sub.add(new URLLabel(OPENROCKET_URL), "ax 50%, growy, wrap para");
|
||||
panel.add(sub, "grow");
|
||||
panel.add(sub, "grow, pushx");
|
||||
|
||||
|
||||
// Translation information (if present)
|
||||
@ -133,7 +134,8 @@ public class AboutDialog extends JDialog {
|
||||
|
||||
DescriptionArea info = new DescriptionArea(5);
|
||||
info.setText(CREDITS);
|
||||
panel.add(info, "newline, width 10px, height 150lp, grow, spanx, wrap para");
|
||||
info.setTextFont(UIManager.getFont("Label.font"));
|
||||
panel.add(info, "newline, width 10px, height 250lp, pushy, grow, spanx, wrap para");
|
||||
|
||||
// JTextArea area = new JTextArea(CREATORS);
|
||||
// area.setEditable(false);
|
||||
@ -155,7 +157,6 @@ public class AboutDialog extends JDialog {
|
||||
this.add(panel);
|
||||
this.setTitle("OpenRocket " + version);
|
||||
this.pack();
|
||||
this.setResizable(false);
|
||||
this.setLocationRelativeTo(parent);
|
||||
|
||||
GUIUtil.setDisposableDialogOptions(this, close);
|
||||
|
Loading…
x
Reference in New Issue
Block a user