Hiding "Print to file" in a Java print dialog
- by Carl Smotricz
I'm maintaining this Swing app that has a "print" option. Users need to be kept from interacting in any way with the underlying file system, but the print dialog offers "print to file" as one printer, and that of course allows selecting a directory and file from the file system.
Is there a painless way to override/modify the print dialog to hide…