This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Printer Prefs Dialog Confusion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Printer Prefs Dialog Confusion" Watch "Printer Prefs Dialog Confusion" New topic

Printer Prefs Dialog Confusion

Aaron Roberts
Ranch Hand

Joined: Sep 10, 2002
Posts: 174
I have an app which runs in full screen mode. It doesn't change the resolution.

Here is a code snippet -

When I used the printJob.printDialog() method, to show a native print dialog menu, it doesn't show up on the full screen JFrame. I have to alt-tab to it. If I use the version shown above, the dialog shows up, but it won't let me change the printer prefs (specifically printing in color vs black white)

Is there a way to either get the native dialog to show up where I want it or to get access to the printer properties?

Aaron R>
[ October 28, 2004: Message edited by: Aaron Roberts ]
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299

Moving to the Swing forum where people know about Printing.

GenRocket - Experts at Building Test Data
It is sorta covered in the JavaRanch Style Guide.
subject: Printer Prefs Dialog Confusion
Similar Threads
need to create a Navagation Button control using Annotation
Print dialog
Print Dialog JRE1.3.1_06
printer dialog box