diff --git a/designer_chart/src/com/fr/design/chart/series/PlotSeries/MapCustomPane.java b/designer_chart/src/com/fr/design/chart/series/PlotSeries/MapCustomPane.java index 0a922d34e..0cdd4595e 100644 --- a/designer_chart/src/com/fr/design/chart/series/PlotSeries/MapCustomPane.java +++ b/designer_chart/src/com/fr/design/chart/series/PlotSeries/MapCustomPane.java @@ -166,8 +166,13 @@ refreshAreaNameBox(); } List columnNameList = tableDataWrappe.calculateColumnNameList(); + Object oldSelected = areaString.getSelectedItem(); areaString.removeAllItems(); - areaString.setItemList(columnNameList); + + for(String item : columnNameList) { + areaString.addItem(item); + } + areaString.getModel().setSelectedItem(oldSelected); } /**