jdk/src/java.desktop/share/classes/sun/print/ServiceDialog.java
changeset 37691 8cd8bdd9280c
parent 32865 f9cb6e427f9e
child 37714 7a0b1c7e7054
equal deleted inserted replaced
37690:0e619f348ff7 37691:8cd8bdd9280c
  1420             topMargin = new JFormattedTextField(nf);
  1420             topMargin = new JFormattedTextField(nf);
  1421             topMargin.addFocusListener(this);
  1421             topMargin.addFocusListener(this);
  1422             topMargin.addActionListener(this);
  1422             topMargin.addActionListener(this);
  1423             topMargin.getAccessibleContext().setAccessibleName(
  1423             topMargin.getAccessibleContext().setAccessibleName(
  1424                                               getMsg("label.topmargin"));
  1424                                               getMsg("label.topmargin"));
  1425             topMargin = new JFormattedTextField(nf);
  1425 
  1426             bottomMargin = new JFormattedTextField(nf);
  1426             bottomMargin = new JFormattedTextField(nf);
  1427             bottomMargin.addFocusListener(this);
  1427             bottomMargin.addFocusListener(this);
  1428             bottomMargin.addActionListener(this);
  1428             bottomMargin.addActionListener(this);
  1429             bottomMargin.getAccessibleContext().setAccessibleName(
  1429             bottomMargin.getAccessibleContext().setAccessibleName(
  1430                                               getMsg("label.bottommargin"));
  1430                                               getMsg("label.bottommargin"));
  1431             topMargin = new JFormattedTextField(nf);
  1431 
  1432             c.gridwidth = GridBagConstraints.RELATIVE;
  1432             c.gridwidth = GridBagConstraints.RELATIVE;
  1433             lblLeft = new JLabel(getMsg("label.leftmargin") + " " + unitsMsg,
  1433             lblLeft = new JLabel(getMsg("label.leftmargin") + " " + unitsMsg,
  1434                                  JLabel.LEADING);
  1434                                  JLabel.LEADING);
  1435             lblLeft.setDisplayedMnemonic(getMnemonic("label.leftmargin"));
  1435             lblLeft.setDisplayedMnemonic(getMnemonic("label.leftmargin"));
  1436             lblLeft.setLabelFor(leftMargin);
  1436             lblLeft.setLabelFor(leftMargin);