Browse Source

分两行显示checkbox和输入框,适应国际化情况。

master
mengao 7 years ago
parent
commit
5993e65d4a
  1. 11
      designer_chart/src/com/fr/design/mainframe/chart/gui/style/axis/ChartValuePane.java

11
designer_chart/src/com/fr/design/mainframe/chart/gui/style/axis/ChartValuePane.java

@ -151,10 +151,11 @@ public class ChartValuePane extends ChartAxisUsePane<Axis>{
double p = TableLayout.PREFERRED;
double f = TableLayout.FILL;
double[] columnSize = { LayoutConstants.CHART_ATTR_TOMARGIN,p,f};
double[] rowSize = { p, p,};
double[] rowSize = { p, p, p};
Component[][] component = new Component[][]{
new Component[]{null,initMinMaxValue(),null},
new Component[]{null, addLogarithmicPane2ValuePane(), addLogText()},
new Component[]{null, addLogarithmicPane2ValuePane(), null},
new Component[]{null, null, addLogText()},
};
return TableLayoutHelper.createTableLayoutPane(component, rowSize, columnSize);
}
@ -173,10 +174,10 @@ public class ChartValuePane extends ChartAxisUsePane<Axis>{
JPanel labelLogPane = FRGUIPaneFactory.createLeftFlowZeroGapBorderPane();
labelLogPane.add(logBox = new UICheckBox(Inter.getLocText("Logarithmic")+":"));
labelLogPane.add(new UILabel(Inter.getLocText("Chart_Log_Base")));
logBaseField = new UITextField(4);
logBaseField.setText("10");
logBaseField.setPreferredSize(new Dimension(20, 20));
logBaseField.setPreferredSize(new Dimension(50, 20));
logBox.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
@ -185,7 +186,7 @@ public class ChartValuePane extends ChartAxisUsePane<Axis>{
});
ChartSwingUtils.addListener(logBox, logBaseField);
return labelLogPane;
}

Loading…
Cancel
Save