center license header
[jSite2.git] / src / net / pterodactylus / jsite / gui / AboutDialog.java
index abfa166..a8ae223 100644 (file)
@@ -190,8 +190,11 @@ public class AboutDialog extends JDialog implements I18nable {
                JPanel licensePanel = new JPanel(new BorderLayout(12, 12));
                licensePanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));
 
+               JPanel licenseHeaderPanel = new JPanel(new FlowLayout());
+               licensePanel.add(licenseHeaderPanel, BorderLayout.PAGE_START);
+
                licenseHeaderLabel = new I18nLabel("aboutDialog.page.license.header", Version.getVersion());
-               licensePanel.add(licenseHeaderLabel, BorderLayout.PAGE_START);
+               licenseHeaderPanel.add(licenseHeaderLabel);
                licenseHeaderLabel.setAlignmentX(0.5f);
 
                String licenseText = loadLicenseText();