leftMarginTextField.setText(marginFormatter.format(left));
rightMargintextField.setText(marginFormatter.format(right));
}
private PageSizeItem getItem(String width, String height) {
DefaultComboBoxModel comboBoxModel = (DefaultComboBoxModel) pageSizeCombo.getModel();
for (int i = 0; i < comboBoxModel.getSize(); i++) {
Object o = comboBoxModel.getElementAt(i);
if (o instanceof PageSizeItem) {
PageSizeItem pageSize = (PageSizeItem) o;
double pageWidth = 0;
double pageHeight = 0;
if (millimeter) {