From 12b78e7e4b4ba708c8000e2180b0fa9ad75f4613 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=B9=E7=A3=8A?= <294531121@qq.com> Date: Wed, 9 Feb 2022 18:51:52 +0800 Subject: [PATCH] =?UTF-8?q?CHART-22754&CHART-22755&CHART-22757&CHART-22769?= =?UTF-8?q?&CHART-22768=20=E8=8B=A5=E5=B9=B2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mainframe/chart/gui/ChangeConfigPane.java | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/ChangeConfigPane.java b/designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/ChangeConfigPane.java index bbc923f4d..b6e18f83a 100644 --- a/designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/ChangeConfigPane.java +++ b/designer-chart/src/main/java/com/fr/design/mainframe/chart/gui/ChangeConfigPane.java @@ -184,7 +184,7 @@ public class ChangeConfigPane extends BasicBeanPane { BorderLayout.CENTER ); - UIExpandablePane expandablePane = new UIExpandablePane(Toolkit.i18nText("Fine-Design_Chart_Button_Content"), 20, buttonContentPane) { + UIExpandablePane expandablePane = new UIExpandablePane(Toolkit.i18nText("Fine-Design_Chart_Button_And_Rotation_Content"), 20, buttonContentPane) { protected void setcontentPanelontentPanelBorder() { } @@ -212,6 +212,7 @@ public class ChangeConfigPane extends BasicBeanPane { populateSwitchTitlePane(i, collection); } + showSwitchTitleCard(collection.getChartName(select)); chartTypesPane.revalidate(); switchTitlePane.revalidate(); selectedChart = select; @@ -228,7 +229,7 @@ public class ChangeConfigPane extends BasicBeanPane { result = Utils.objectToString(switchTitle); } } else { - result = collection.getChartName(chartIndex); + result = Toolkit.i18nText("Fine-Design_Chart_Chart") + (chartIndex + 1); } TinyFormulaPane title = new TinyFormulaPane(); @@ -357,8 +358,7 @@ public class ChangeConfigPane extends BasicBeanPane { @Override public void mouseClicked(MouseEvent e) { resetChangeChartButtons(); - CardLayout cardLayout = (CardLayout) switchTitlePane.getLayout(); - cardLayout.show(switchTitlePane, collection.getChartName(buttonIndex)); + showSwitchTitleCard(collection.getChartName(buttonIndex)); ChangeChartButton.this.setSelected(true); selectedChart = buttonIndex; } @@ -375,4 +375,9 @@ public class ChangeConfigPane extends BasicBeanPane { changeChartButton.setSelected(false); } } + + private void showSwitchTitleCard(String chartName) { + CardLayout cardLayout = (CardLayout) switchTitlePane.getLayout(); + cardLayout.show(switchTitlePane, chartName); + } }