Solved

Is there a way to customize the java print dialog

Posted on 2009-04-08
1
681 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 250 total points
ID: 24102598
>  Is this possible?

not that I'm aware of

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering 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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

829 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