File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Printer Prefs Dialog Confusion" Watch "Printer Prefs Dialog Confusion" New topic
Author

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?

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

Joined: Jul 11, 2001
Posts: 15286
    
    6

Moving to the Swing forum where people know about Printing.


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