Solved

Is there a way to customize the java print dialog

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

not that I'm aware of

0

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ejb entity bean example issue 2 27
Tomcat 9 + java 8 error while trying to deploy a war file 2 730
Java List 4 41
Delete .class files at every compile 4 24
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

726 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