?
Solved

Is there a way to customize the java print dialog

Posted on 2009-04-08
1
Medium Priority
?
719 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
Suggested Courses

718 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