diff --git a/designer-base/src/main/java/com/fine/theme/light/ui/FineTemplateTabPaneUI.java b/designer-base/src/main/java/com/fine/theme/light/ui/FineTemplateTabPaneUI.java index 3290d5bd22..2de24c89c2 100644 --- a/designer-base/src/main/java/com/fine/theme/light/ui/FineTemplateTabPaneUI.java +++ b/designer-base/src/main/java/com/fine/theme/light/ui/FineTemplateTabPaneUI.java @@ -214,17 +214,6 @@ public class FineTemplateTabPaneUI extends PanelUI { } } - private void paintLeadingAction(Graphics2D g2d, double tabPaneWidth) { - int x = (leadingWidth - addAction.getIconWidth()) / 2; - int y = (tabHeight - addAction.getIconHeight()) / 2; - if (tabPane.isHoverMoreAction()) { - closeHoverIcon.paintIcon(tabPane, g2d, x, y); - } else { - addAction.paintIcon(tabPane, g2d, x, y); - } - - } - private void paintTrailingAction(Graphics2D g2d, double tabPaneWidth) { int x = leadingWidth + (int) tabPaneWidth + (trailingWidth - moreAction.getIconWidth()) / 2; diff --git a/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java b/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java index 9a0892d865..6e719ac1a8 100644 --- a/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java +++ b/designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java @@ -62,12 +62,12 @@ import static javax.swing.JOptionPane.OK_OPTION; import static javax.swing.JOptionPane.WARNING_MESSAGE; /** - * 改个名字,一个拼写 n 个错误 + * 模版Tab组件 * * @author daisy - * @version 11.0 + * @since 11.0 *

- * created by daisy on 2013/08/05 + * created on 2013/08/05 **/ public class MultiTemplateTabPane extends Row { @@ -208,7 +208,7 @@ public class MultiTemplateTabPane extends Row { leadingActionButton.addActionListener(l); } - public void setLeadingActionEnable(boolean enable){ + public void setLeadingActionEnable(boolean enable) { leadingActionButton.setEnabled(enable); }