|
|
|
@ -52,7 +52,7 @@ public class CheckFontInfoDialog extends JDialog implements ActionListener {
|
|
|
|
|
MessageWithLink linkMessage = new MessageWithLink(Toolkit.i18nText("Fine_Designer_Check_Font_Message"), |
|
|
|
|
Toolkit.i18nText("Fine_Designer_Check_Font_Install_Font"), |
|
|
|
|
CloudCenter.getInstance().acquireUrlByKind("help.install.font", "https://help.fanruan.com/finereport/doc-view-3999.html")); |
|
|
|
|
linkMessage.setPreferredSize(new Dimension(380, 31)); |
|
|
|
|
linkMessage.setPreferredSize(new Dimension(getPaneWidth(), 31)); |
|
|
|
|
messagePanel.add(linkMessage); |
|
|
|
|
|
|
|
|
|
// 查看详情按钮
|
|
|
|
@ -89,11 +89,11 @@ public class CheckFontInfoDialog extends JDialog implements ActionListener {
|
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
if (hiddenPanel.isVisible()) { |
|
|
|
|
hiddenPanel.setVisible(false); |
|
|
|
|
CheckFontInfoDialog.this.setSize(new Dimension(380, 185)); |
|
|
|
|
CheckFontInfoDialog.this.setSize(new Dimension(getPaneWidth(), 185)); |
|
|
|
|
detailLabel.setText(Toolkit.i18nText("Fine_Designer_Look_Detail")); |
|
|
|
|
directUiLabel.setIcon(UIManager.getIcon("OptionPane.narrow.right")); |
|
|
|
|
} else { |
|
|
|
|
CheckFontInfoDialog.this.setSize(new Dimension(380, 280)); |
|
|
|
|
CheckFontInfoDialog.this.setSize(new Dimension(getPaneWidth(), 280)); |
|
|
|
|
hiddenPanel.setVisible(true); |
|
|
|
|
detailLabel.setText(Toolkit.i18nText("Fine_Designer_Hide_Detail")); |
|
|
|
|
directUiLabel.setIcon(UIManager.getIcon("OptionPane.narrow.down")); |
|
|
|
@ -114,11 +114,24 @@ public class CheckFontInfoDialog extends JDialog implements ActionListener {
|
|
|
|
|
this.add(topPanel, BorderLayout.NORTH); |
|
|
|
|
this.add(hiddenPanel, BorderLayout.CENTER); |
|
|
|
|
this.add(bottomPanel, BorderLayout.SOUTH); |
|
|
|
|
this.setSize(new Dimension(GeneralContext.getLocale().equals(Locale.US)? 400:380, 185)); |
|
|
|
|
this.setSize(new Dimension(getPaneWidth(), 185)); |
|
|
|
|
|
|
|
|
|
GUICoreUtils.centerWindow(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private int getPaneWidth() { |
|
|
|
|
Locale locale = GeneralContext.getLocale(); |
|
|
|
|
if (locale.equals(Locale.US)) { |
|
|
|
|
return 630; |
|
|
|
|
} else if (locale.equals(Locale.JAPAN)) { |
|
|
|
|
return 610; |
|
|
|
|
} else if (locale.equals(Locale.KOREA)) { |
|
|
|
|
return 490; |
|
|
|
|
} else { |
|
|
|
|
return 385; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
|
this.dispose(); |
|
|
|
|