Hiding "Print to file" in a Java print dialog
Posted
by Carl Smotricz
on Stack Overflow
See other posts from Stack Overflow
or by Carl Smotricz
Published on 2010-05-20T13:56:43Z
Indexed on
2010/05/20
14:00 UTC
Read the original article
Hit count: 185
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 the "to file" printer from this dialog? I understand the API will let me do this piecemeal but I'd rather not have to re-create most of the dialog GUI and functionality to do this.
© Stack Overflow or respective owner