Solved

Is there a way to customize the java print dialog

Posted on 2009-04-08
1
655 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
Comment Utility
>  Is this possible?

not that I'm aware of

0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

763 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

12 Experts available now in Live!

Get 1:1 Help Now