Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Is there a way to customize the java print dialog

Posted on 2009-04-08
1
Medium Priority
?
735 Views
Last Modified: 2013-11-23
My program currently brings up the standard java print dialog ( the one with the general, page setup and appearance tabs).  I would like to customize this print dialog to add another check box that essentially says "Scale To Fit".  Is this possible?  What class would I extend?  Thanks for your help!
PrinterJob printerJob = null;
private PrintRequestAttributeSet attributeSet = new HashPrintRequestAttributeSet();
 
//This currently brings up the standardjava print dialog
if (printerJob.printDialog(attributeSet) )
{
            try 
            {
                printerJob.print(attributeSet);
            } 
            catch (Exception ex) 
            {
                ex.printStackTrace();
            }
}

Open in new window

0
Comment
Question by:rmi-expert
1 Comment
 
LVL 92

Accepted Solution

by:
objects earned 1000 total points
ID: 24102598
>  Is this possible?

not that I'm aware of

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question