|
|
@ -58,7 +58,6 @@ public class TextFormatPane extends AbstractBasicStylePane implements GlobalName |
|
|
|
private static final int LABEL_DELTA_WIDTH = 8; |
|
|
|
private static final int LABEL_DELTA_WIDTH = 8; |
|
|
|
private static final int LABEL_HEIGHT = 15; //标签背景的范围
|
|
|
|
private static final int LABEL_HEIGHT = 15; //标签背景的范围
|
|
|
|
private static final int CURRENCY_FLAG_POINT = 6; |
|
|
|
private static final int CURRENCY_FLAG_POINT = 6; |
|
|
|
private static final Border LEFT_BORDER = BorderFactory.createEmptyBorder(0, 30, 0, 0); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static final Integer[] TYPES = new Integer[]{ |
|
|
|
private static final Integer[] TYPES = new Integer[]{ |
|
|
|
FormatContents.NULL, FormatContents.NUMBER, |
|
|
|
FormatContents.NULL, FormatContents.NUMBER, |
|
|
@ -127,13 +126,12 @@ public class TextFormatPane extends AbstractBasicStylePane implements GlobalName |
|
|
|
typeComboBox.setPreferredSize(new Dimension(155,20)); |
|
|
|
typeComboBox.setPreferredSize(new Dimension(155,20)); |
|
|
|
JPanel typePane = new JPanel(new BorderLayout()); |
|
|
|
JPanel typePane = new JPanel(new BorderLayout()); |
|
|
|
typePane.add(typeComboBox, BorderLayout.CENTER); |
|
|
|
typePane.add(typeComboBox, BorderLayout.CENTER); |
|
|
|
typePane.setBorder(LEFT_BORDER); |
|
|
|
typePane.setBorder(BorderFactory.createEmptyBorder(0, 20, 0, 0)); |
|
|
|
// centerPane.setBorder(LEFT_BORDER);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
JPanel option = new JPanel(new BorderLayout()); |
|
|
|
JPanel option = new JPanel(new BorderLayout()); |
|
|
|
option.add(new UILabel(Toolkit.i18nText("Fine-Design_Report_Base_Option"), SwingConstants.LEFT), BorderLayout.WEST); |
|
|
|
option.add(new UILabel(Toolkit.i18nText("Fine-Design_Report_Base_Option"), SwingConstants.LEFT), BorderLayout.WEST); |
|
|
|
roundingBox = new UICheckBox(Toolkit.i18nText("Fine-Design_Report_Base_Option_Half_Up")); |
|
|
|
roundingBox = new UICheckBox(Toolkit.i18nText("Fine-Design_Report_Base_Option_Half_Up")); |
|
|
|
roundingBox.setBorder(BorderFactory.createEmptyBorder(0, 40, 0, 0)); |
|
|
|
roundingBox.setBorder(BorderFactory.createEmptyBorder(0, 30, 0, 0)); |
|
|
|
roundingBox.addItemListener(new ItemListener() { |
|
|
|
roundingBox.addItemListener(new ItemListener() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|
public void itemStateChanged(ItemEvent e) { |
|
|
|