Skip to content

Commit 4018075

Browse files
committed
Fix ugly padding on mapleir dialog
1 parent acfba36 commit 4018075

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mapleir/src/main/java/org/mapleir/jdaplugin/gui/AboutDialog.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
package org.mapleir.jdaplugin.gui;
22

33
import javax.swing.*;
4+
import javax.swing.border.EmptyBorder;
45

56
public class AboutDialog extends JDialog {
67
public AboutDialog() {
78
super(new JFrame(), "MapleIR - About", true);
9+
rootPane.setBorder(new EmptyBorder(10, 10, 10, 10));
810
Box b = Box.createVerticalBox();
911
b.add(Box.createGlue());
1012
b.add(new JLabel("Powered by MapleIR"));
1113
b.add(Box.createGlue());
1214
getContentPane().add(b, "Center");
1315

1416
JPanel okPanel = new JPanel();
15-
JButton ok = new JButton("Ok");
17+
JButton ok = new JButton("OK");
1618
okPanel.add(ok);
1719
getContentPane().add(okPanel, "South");
1820

0 commit comments

Comments
 (0)