about dialog opt

This commit is contained in:
RememBerBer 2021-11-25 09:21:43 +08:00
parent 2a45cf3ca0
commit d99f1992d3
2 changed files with 8 additions and 8 deletions

View File

@ -205,12 +205,12 @@
<text value="&lt;html&gt;&lt;a href=&quot;https://hutool.cn/&quot;&gt;Hutool&lt;/a&gt;&lt;/html&gt;"/> <text value="&lt;html&gt;&lt;a href=&quot;https://hutool.cn/&quot;&gt;Hutool&lt;/a&gt;&lt;/html&gt;"/>
</properties> </properties>
</component> </component>
<component id="6b692" class="javax.swing.JLabel" binding="vsCodeIconsLabel"> <component id="6b692" class="javax.swing.JLabel" binding="iconFontLabel">
<constraints> <constraints>
<grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/> <grid row="3" column="0" row-span="1" col-span="1" vsize-policy="0" hsize-policy="0" anchor="8" fill="0" indent="0" use-parent-layout="false"/>
</constraints> </constraints>
<properties> <properties>
<text value="&lt;html&gt;&lt;a href=&quot;https://github.com/microsoft/vscode-icons&quot;&gt;vscode-icons&lt;/a&gt;&lt;/html&gt;"/> <text value="&lt;html&gt;&lt;a href=&quot;https://www.iconfont.cn/&quot;&gt;iconfont&lt;/a&gt;&lt;/html&gt;"/>
</properties> </properties>
</component> </component>
</children> </children>

View File

@ -30,7 +30,7 @@ public class AboutDialog extends JDialog {
private JLabel codeGiteeLabel; private JLabel codeGiteeLabel;
private JLabel issueLabel; private JLabel issueLabel;
private JLabel hutoolLabel; private JLabel hutoolLabel;
private JLabel vsCodeIconsLabel; private JLabel iconFontLabel;
private JLabel wePushLinkLabel; private JLabel wePushLinkLabel;
private JPanel wePushPanel; private JPanel wePushPanel;
private JLabel authorLabel; private JLabel authorLabel;
@ -294,13 +294,13 @@ public class AboutDialog extends JDialog {
e.getComponent().setCursor(new Cursor(Cursor.HAND_CURSOR)); e.getComponent().setCursor(new Cursor(Cursor.HAND_CURSOR));
} }
}); });
vsCodeIconsLabel.addMouseListener(new MouseAdapter() { iconFontLabel.addMouseListener(new MouseAdapter() {
@Override @Override
public void mouseClicked(MouseEvent e) { public void mouseClicked(MouseEvent e) {
super.mouseClicked(e); super.mouseClicked(e);
Desktop desktop = Desktop.getDesktop(); Desktop desktop = Desktop.getDesktop();
try { try {
desktop.browse(new URI("https://github.com/microsoft/vscode-icons")); desktop.browse(new URI("https://www.iconfont.cn/"));
} catch (IOException | URISyntaxException e1) { } catch (IOException | URISyntaxException e1) {
e1.printStackTrace(); e1.printStackTrace();
} }
@ -432,9 +432,9 @@ public class AboutDialog extends JDialog {
hutoolLabel = new JLabel(); hutoolLabel = new JLabel();
hutoolLabel.setText("<html><a href=\"https://hutool.cn/\">Hutool</a></html>"); hutoolLabel.setText("<html><a href=\"https://hutool.cn/\">Hutool</a></html>");
panel6.add(hutoolLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); panel6.add(hutoolLabel, new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
vsCodeIconsLabel = new JLabel(); iconFontLabel = new JLabel();
vsCodeIconsLabel.setText("<html><a href=\"https://github.com/microsoft/vscode-icons\">vscode-icons</a></html>"); iconFontLabel.setText("<html><a href=\"https://www.iconfont.cn/\">iconfont</a></html>");
panel6.add(vsCodeIconsLabel, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false)); panel6.add(iconFontLabel, new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));
final JPanel panel7 = new JPanel(); final JPanel panel7 = new JPanel();
panel7.setLayout(new GridLayoutManager(1, 1, new Insets(5, 3, 20, 0), -1, -1)); panel7.setLayout(new GridLayoutManager(1, 1, new Insets(5, 3, 20, 0), -1, -1));
panel1.add(panel7, new GridConstraints(6, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false)); panel1.add(panel7, new GridConstraints(6, 0, 1, 2, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, null, null, 0, false));