|
|
@ -52,7 +52,7 @@ public class CheckFontInfoDialog extends JDialog implements ActionListener { |
|
|
|
MessageWithLink linkMessage = new MessageWithLink(Toolkit.i18nText("Fine_Designer_Check_Font_Message"), |
|
|
|
MessageWithLink linkMessage = new MessageWithLink(Toolkit.i18nText("Fine_Designer_Check_Font_Message"), |
|
|
|
Toolkit.i18nText("Fine_Designer_Check_Font_Install_Font"), |
|
|
|
Toolkit.i18nText("Fine_Designer_Check_Font_Install_Font"), |
|
|
|
CloudCenter.getInstance().acquireUrlByKind("help.install.font", "https://help.fanruan.com/finereport/doc-view-3999.html")); |
|
|
|
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); |
|
|
|
messagePanel.add(linkMessage); |
|
|
|
|
|
|
|
|
|
|
|
// 查看详情按钮
|
|
|
|
// 查看详情按钮
|
|
|
@ -89,11 +89,11 @@ public class CheckFontInfoDialog extends JDialog implements ActionListener { |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
if (hiddenPanel.isVisible()) { |
|
|
|
if (hiddenPanel.isVisible()) { |
|
|
|
hiddenPanel.setVisible(false); |
|
|
|
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")); |
|
|
|
detailLabel.setText(Toolkit.i18nText("Fine_Designer_Look_Detail")); |
|
|
|
directUiLabel.setIcon(UIManager.getIcon("OptionPane.narrow.right")); |
|
|
|
directUiLabel.setIcon(UIManager.getIcon("OptionPane.narrow.right")); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
CheckFontInfoDialog.this.setSize(new Dimension(380, 280)); |
|
|
|
CheckFontInfoDialog.this.setSize(new Dimension(getPaneWidth(), 280)); |
|
|
|
hiddenPanel.setVisible(true); |
|
|
|
hiddenPanel.setVisible(true); |
|
|
|
detailLabel.setText(Toolkit.i18nText("Fine_Designer_Hide_Detail")); |
|
|
|
detailLabel.setText(Toolkit.i18nText("Fine_Designer_Hide_Detail")); |
|
|
|
directUiLabel.setIcon(UIManager.getIcon("OptionPane.narrow.down")); |
|
|
|
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(topPanel, BorderLayout.NORTH); |
|
|
|
this.add(hiddenPanel, BorderLayout.CENTER); |
|
|
|
this.add(hiddenPanel, BorderLayout.CENTER); |
|
|
|
this.add(bottomPanel, BorderLayout.SOUTH); |
|
|
|
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); |
|
|
|
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 |
|
|
|
@Override |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
public void actionPerformed(ActionEvent e) { |
|
|
|
this.dispose(); |
|
|
|
this.dispose(); |
|
|
|