if (fs.getSelectedItem() != null) { changes.firePropertyChange(this,"print.font", getStringProperty("print.font"), (String)fs.getSelectedItem()); setProperty("print.font",(String)fs.getSelectedItem()); }
   public void applyAttributes() {      if (defaultPrinter.isSelected()) {         changes.firePropertyChange(this,"defaultPrinter",                           getStringProperty("defaultPrinter"),                           "Yes");         setProperty("defaultPrinter","Yes");      }      else {         changes.firePropertyChange(this,"defaultPrinter",                           getStringProperty("defaultPrinter"),                           "No");         setProperty("defaultPrinter","No");      }      // portrait parameters      changes.firePropertyChange(this,"print.portWidth",                        getStringProperty("print.portWidth"),                        new Double(pappyPort.getWidth()));      setProperty("print.portWidth",Double.toString(pappyPort.getWidth()));      changes.firePropertyChange(this,"print.portImageWidth",                        getStringProperty("print.portImageWidth"),                        new Double(pappyPort.getImageableWidth()));      setProperty("print.portImageWidth",Double.toString(pappyPort.getImageableWidth()));      changes.firePropertyChange(this,"print.portHeight",                        getStringProperty("print.portHeight"),                        new Double(pappyPort.getHeight()));      setProperty("print.portHeight",Double.toString(pappyPort.getHeight()));      changes.firePropertyChange(this,"print.portImageHeight",                        getStringProperty("print.portImageHeight"),                        new Double(pappyPort.getImageableHeight()));      setProperty("print.portImageHeight",Double.toString(pappyPort.getImageableHeight()));      changes.firePropertyChange(this,"print.portImage.X",                        getStringProperty("print.portImage.X"),                        new Double(pappyPort.getImageableX()));      setProperty("print.portImage.X",Double.toString(pappyPort.getImageableX()));      changes.firePropertyChange(this,"print.portImage.Y",                        getStringProperty("print.portImage.Y"),                        new Double(pappyPort.getImageableY()));      setProperty("print.portImage.Y",Double.toString(pappyPort.getImageableY()));      // landscape parameters      changes.firePropertyChange(this,"print.landWidth",                        getStringProperty("print.landWidth"),                        new Double(pappyLand.getWidth()));      setProperty("print.landWidth",Double.toString(pappyLand.getWidth()));      changes.firePropertyChange(this,"print.landImageWidth",                        getStringProperty("print.landImageWidth"),                        new Double(pappyLand.getImageableWidth()));      setProperty("print.landImageWidth",Double.toString(pappyLand.getImageableWidth()));      changes.firePropertyChange(this,"print.landHeight",                        getStringProperty("print.landHeight"),                        new Double(pappyLand.getHeight()));      setProperty("print.landHeight",Double.toString(pappyLand.getHeight()));      changes.firePropertyChange(this,"print.landImageHeight",                        getStringProperty("print.landImageHeight"),                        new Double(pappyLand.getImageableHeight()));      setProperty("print.landImageHeight",Double.toString(pappyLand.getImageableHeight()));      changes.firePropertyChange(this,"print.landImage.X",                        getStringProperty("print.landImage.X"),                        new Double(pappyLand.getImageableX()));      setProperty("print.landImage.X",Double.toString(pappyLand.getImageableX()));      changes.firePropertyChange(this,"print.landImage.Y",                        getStringProperty("print.landImage.Y"),                        new Double(pappyLand.getImageableY()));      setProperty("print.landImage.Y",Double.toString(pappyLand.getImageableY()));   }