|
|
|
@ -45,6 +45,16 @@ public class PluginBatchModifyDetailPane {
|
|
|
|
|
private JTextArea jta; |
|
|
|
|
private JDialog dialog; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 弹窗面板默认大小 |
|
|
|
|
*/ |
|
|
|
|
public static final Dimension DEFAULT = new Dimension(380, 150); |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 弹窗面板展开大小 |
|
|
|
|
*/ |
|
|
|
|
public static final Dimension DEFAULT_PRO = new Dimension(380, 270); |
|
|
|
|
|
|
|
|
|
public PluginBatchModifyDetailPane(Dialog parent) { |
|
|
|
|
init(parent); |
|
|
|
|
} |
|
|
|
@ -52,7 +62,7 @@ public class PluginBatchModifyDetailPane {
|
|
|
|
|
private void init(Dialog parent) { |
|
|
|
|
message.setBorder(BorderFactory.createEmptyBorder(8, 5, 0, 0)); |
|
|
|
|
dialog = new JDialog(parent, Toolkit.i18nText("Fine-Design_Basic_Plugin_Manager"), true); |
|
|
|
|
dialog.setSize(new Dimension(380, 150)); |
|
|
|
|
dialog.setSize(DEFAULT); |
|
|
|
|
JPanel jp = new JPanel(); |
|
|
|
|
initUpPane(); |
|
|
|
|
initDownPane(); |
|
|
|
@ -126,11 +136,11 @@ public class PluginBatchModifyDetailPane {
|
|
|
|
|
public void mouseClicked(MouseEvent e) { |
|
|
|
|
if (hiddenPanel.isVisible()) { |
|
|
|
|
hiddenPanel.setVisible(false); |
|
|
|
|
dialog.setSize(new Dimension(380, 150)); |
|
|
|
|
dialog.setSize(DEFAULT); |
|
|
|
|
detailLabel.setText(Toolkit.i18nText("Fine_Designer_Look_Detail")); |
|
|
|
|
directUiLabel.setIcon(UIManager.getIcon("OptionPane.narrow.right")); |
|
|
|
|
} else { |
|
|
|
|
dialog.setSize(new Dimension(380, 270)); |
|
|
|
|
dialog.setSize(DEFAULT_PRO); |
|
|
|
|
hiddenPanel.setVisible(true); |
|
|
|
|
detailLabel.setText(Toolkit.i18nText("Fine_Designer_Hide_Detail")); |
|
|
|
|
directUiLabel.setIcon(UIManager.getIcon("OptionPane.narrow.down")); |
|
|
|
|