public void actionPerformed(ActionEvent ae) {
   String command = ae.getActionCommand();
   if (command.equals("print")) // $NON-NLS-1$
   {
     startPrinting(application, fpp.getPageable(), printerJob, preferredPrinterName, true, false);
   } else if (command.equals("pagesetup")) setPageFormat(); // true); //$NON-NLS-1$
   else if (command.equals("pageprevious")) show(-1); // $NON-NLS-1$
   else if (command.equals("pagenext")) show(+1); // $NON-NLS-1$
   else if (command.equals("close")) // $NON-NLS-1$
   {
     ICmdManager cm = application.getCmdManager();
     Action a = cm.getRegisteredAction("cmdbrowsemode"); // $NON-NLS-1$
     ICmd cmd = (ICmd) a;
     cmd.doIt(ae);
   }
 }