Browse Source

Merge pull request #147 in BA/design from ~SHINE/design:dev to dev

* commit 'bd24e58a8c7a67672d704d49746ee1683ca61754':
  滚动条
master
superman 9 years ago
parent
commit
2547c57c95
  1. 25
      designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypePane.java

25
designer_chart/src/com/fr/design/mainframe/chart/gui/ChartTypePane.java

@ -7,6 +7,7 @@ import com.fr.chart.chartattr.Plot;
import com.fr.chart.charttypes.ChartTypeManager; import com.fr.chart.charttypes.ChartTypeManager;
import com.fr.design.ChartTypeInterfaceManager; import com.fr.design.ChartTypeInterfaceManager;
import com.fr.design.beans.FurtherBasicBeanPane; import com.fr.design.beans.FurtherBasicBeanPane;
import com.fr.design.dialog.BasicScrollPane;
import com.fr.design.gui.frpane.UIComboBoxPane; import com.fr.design.gui.frpane.UIComboBoxPane;
import com.fr.design.mainframe.chart.AbstractChartAttrPane; import com.fr.design.mainframe.chart.AbstractChartAttrPane;
import com.fr.design.mainframe.chart.ChartEditPane; import com.fr.design.mainframe.chart.ChartEditPane;
@ -37,8 +38,28 @@ public class ChartTypePane extends AbstractChartAttrPane{
content.add(buttonPane, BorderLayout.NORTH); content.add(buttonPane, BorderLayout.NORTH);
chartTypePane = new ComboBoxPane(); chartTypePane = new ComboBoxPane();
chartTypePane.setBorder(BorderFactory.createEmptyBorder(0,0, 0, 10)); BasicScrollPane scrollPane = new BasicScrollPane() {
content.add(chartTypePane, BorderLayout.CENTER); @Override
protected JPanel createContentPane() {
return chartTypePane;
}
@Override
protected void layoutContentPane() {
leftcontentPane = createContentPane();
this.add(leftcontentPane);
}
@Override
public void populateBean(Object ob) {
}
@Override
protected String title4PopupWindow() {
return null;
}
};
content.add(scrollPane, BorderLayout.CENTER);
buttonPane.setEditingChartPane(chartTypePane); buttonPane.setEditingChartPane(chartTypePane);

Loading…
Cancel
Save