Skip to content

Commit

Permalink
Fix alignement
Browse files Browse the repository at this point in the history
  • Loading branch information
RetGal committed Jun 27, 2024
1 parent 70a3dc3 commit c35d854
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/mpo/dayon/common/gui/common/BaseFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import java.util.regex.Pattern;

import javax.swing.*;
import javax.swing.border.EmptyBorder;

import com.dosse.upnp.UPnP;
import mpo.dayon.assistant.gui.Assistant;
Expand Down Expand Up @@ -199,19 +200,22 @@ private Action createShowInfoAction() {

@Override
public void actionPerformed(ActionEvent ev) {
final EmptyBorder marginLeft = new EmptyBorder(0, 2, 0, 0);
final JPanel panel = new JPanel();
panel.setLayout(new BoxLayout(panel, BoxLayout.PAGE_AXIS));
panel.setPreferredSize(new Dimension(500, 300));

final JLabel info = new JLabel(composeLabelHtml("Dayon!", translate("synopsys")));
info.setAlignmentX(Component.LEFT_ALIGNMENT);
info.setBorder(marginLeft);
info.addMouseListener(new HomeMouseAdapter());
info.setCursor(handCursor);
final JLabel version = new JLabel(composeLabelHtmlWithBuildNumber(translate("version.installed"), Version.get().toString(), getBuildNumber()));
version.setAlignmentX(Component.LEFT_ALIGNMENT);
version.setBorder(marginLeft);
version.addMouseListener(new ReleaseMouseAdapter());
version.setCursor(handCursor);
latestVersion.setAlignmentX(Component.LEFT_ALIGNMENT);
latestVersion.setBorder(marginLeft);
latestVersion.addMouseListener(new LatestReleaseMouseAdapter());
latestVersion.setCursor(handCursor);

Expand Down

0 comments on commit c35d854

Please sign in to comment.