hzzz 8 years ago
parent
commit
79b0c94c75
  1. 14
      designer/src/com/fr/design/report/UnitFieldPane.java

14
designer/src/com/fr/design/report/UnitFieldPane.java

@ -43,13 +43,13 @@ public class UnitFieldPane extends JPanel {
} }
public void setUnitType(int unitType) { public void setUnitType(int unitType) {
if (unitType == Constants.UNIT_CM) { if (unitType == Constants.UNIT_CM) {
this.setText(Inter.getLocText("Unit_CM")); this.setText(Inter.getLocText("FR-Designer_Unit_CM"));
} else if (unitType == Constants.UNIT_INCH) { } else if (unitType == Constants.UNIT_INCH) {
this.setText(Inter.getLocText("PageSetup-inches")); this.setText(Inter.getLocText("FR-Designer_Unit_INCH"));
} else { } else {
this.setText(Inter.getLocText("PageSetup-mm")); this.setText(Inter.getLocText("FR-Designer_Unit_MM-mm"));
} }
//ajust the heigt of unitLabel. //ajust the heigt of unitLabel.
Dimension unitDimension = new Dimension(this.getPreferredSize().width, Dimension unitDimension = new Dimension(this.getPreferredSize().width,

Loading…
Cancel
Save