Solved

Is there a way to customize the java print dialog

Posted on 2009-04-08
1
663 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Printing to a specific printer tray (HP 806dn printer) 3 83
java 8 lambda expresssions exception handling 3 72
GUI builder for Eclipse? 8 27
xampp tool 12 21
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
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 …

948 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now