I'm developing an applications that has to print.
In the class that implements printable it calls a method.
This method is executed twice every click on stamp dialogs.
Here's the code where I add a listener on the button that has to call the print method. Could anybody give me any advise to resolve the problem?

Java Code:
stampButton1.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				System.out.println("You clicked stamp1 button");
				//aumento fattura
				try {
				catch (IOException ex) {
					System.out.println("Start_Dialogs: IOException button stamp1");
				PrinterJob printerJob = PrinterJob.getPrinterJob();
				boolean annulla = printerJob.printDialog();
				if(annulla) {
					PageFormat pageFormat = printerJob.pageDialog(printerJob.defaultPage());
					pageFormat = printerJob.validatePage(pageFormat);
					printerJob.setPrintable(new stampaFattura());
					try {
					} catch(PrinterException ex) {