Another day, another hack - that works default tip
authorPreston L. Bannister <preston@bannister.us>
Wed Dec 02 11:01:42 2009 -0800 (2 years ago)
changeset 3216dc8d0d8dab
parent 31 8468c360db56
Another day, another hack - that works
dist/PrintExplorer.jar
src/us/bannister/printing/explorer/Controller.java
src/us/bannister/printing/explorer/ExplorerUI.form
src/us/bannister/printing/explorer/ExplorerUI.java
     1.1 Binary file dist/PrintExplorer.jar has changed
     2.1 --- a/src/us/bannister/printing/explorer/Controller.java	Wed Dec 02 10:18:22 2009 -0800
     2.2 +++ b/src/us/bannister/printing/explorer/Controller.java	Wed Dec 02 11:01:42 2009 -0800
     2.3 @@ -297,7 +297,7 @@
     2.4                  updatePrinterJobBefore();
     2.5              }
     2.6          });
     2.7 -        ui.zapPrinterResolution.addActionListener(new ActionListener() {
     2.8 +        ui.buttonZapPrinterResolution.addActionListener(new ActionListener() {
     2.9              public void actionPerformed(ActionEvent e) {
    2.10                  toAction("remove PrinterResolution from printRequestAttributeSet");
    2.11                  Attribute o = printRequestAttributeSet.get(PrinterResolution.class);
     3.1 --- a/src/us/bannister/printing/explorer/ExplorerUI.form	Wed Dec 02 10:18:22 2009 -0800
     3.2 +++ b/src/us/bannister/printing/explorer/ExplorerUI.form	Wed Dec 02 11:01:42 2009 -0800
     3.3 @@ -396,7 +396,7 @@
     3.4                          <Property name="text" type="java.lang.String" value="&lt;html&gt;getPageFormat(set) &amp;rArr; pf"/>
     3.5                        </Properties>
     3.6                      </Component>
     3.7 -                    <Component class="javax.swing.JButton" name="zapPrinterResolution">
     3.8 +                    <Component class="javax.swing.JButton" name="buttonZapPrinterResolution">
     3.9                        <Properties>
    3.10                          <Property name="text" type="java.lang.String" value="zap PrinterResolution"/>
    3.11                        </Properties>
     4.1 --- a/src/us/bannister/printing/explorer/ExplorerUI.java	Wed Dec 02 10:18:22 2009 -0800
     4.2 +++ b/src/us/bannister/printing/explorer/ExplorerUI.java	Wed Dec 02 11:01:42 2009 -0800
     4.3 @@ -44,7 +44,7 @@
     4.4          buttonResetPrintRequestAttributeSet = new javax.swing.JButton();
     4.5          javax.swing.JLabel jLabel2 = new javax.swing.JLabel();
     4.6          buttonPageFormatWithSet = new javax.swing.JButton();
     4.7 -        zapPrinterResolution = new javax.swing.JButton();
     4.8 +        buttonZapPrinterResolution = new javax.swing.JButton();
     4.9          panelDialogs = new javax.swing.JPanel();
    4.10          javax.swing.JLabel jLabel4 = new javax.swing.JLabel();
    4.11          buttonPageDialogWithPage = new javax.swing.JButton();
    4.12 @@ -190,8 +190,8 @@
    4.13          buttonPageFormatWithSet.setText("<html>getPageFormat(set) &rArr; pf");
    4.14          panelPrintRequestAttributeSetOps.add(buttonPageFormatWithSet);
    4.15  
    4.16 -        zapPrinterResolution.setText("zap PrinterResolution");
    4.17 -        panelPrintRequestAttributeSetOps.add(zapPrinterResolution);
    4.18 +        buttonZapPrinterResolution.setText("zap PrinterResolution");
    4.19 +        panelPrintRequestAttributeSetOps.add(buttonZapPrinterResolution);
    4.20  
    4.21          panelPrinterJobOps.add(panelPrintRequestAttributeSetOps);
    4.22  
    4.23 @@ -348,6 +348,7 @@
    4.24      javax.swing.JButton buttonSetPrintable;
    4.25      javax.swing.JButton buttonToolkit_getPrintJob;
    4.26      javax.swing.JButton buttonValidatePage;
    4.27 +    javax.swing.JButton buttonZapPrinterResolution;
    4.28      javax.swing.JCheckBox checkboxNativeDialog;
    4.29      javax.swing.JCheckBox checkboxNativeDialogHack;
    4.30      javax.swing.JComboBox comboboxPrinter;
    4.31 @@ -377,6 +378,5 @@
    4.32      javax.swing.JTextPane textPrinterJobAfter;
    4.33      javax.swing.JTextPane textPrinterJobBefore;
    4.34      javax.swing.JLabel textStatus;
    4.35 -    javax.swing.JButton zapPrinterResolution;
    4.36      // End of variables declaration//GEN-END:variables
    4.37  }