Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Printer Fun  (Read 623 times)
0 Members and 1 Guest are viewing this topic.
Offline dranonymous

Sr. Member
**

Posts: 394


Hoping to become a Java Titan someday!


« on: 2004-10-28 09:21:22 »

I have an app which runs in full screen mode.  It doesn't change the resolution.

Here is a code snippet -

[CODE]
     PrinterJob printJob = PrinterJob.getPrinterJob();
     printJob.setPrintable(PaintingActionPanel.this);
     HashPrintRequestAttributeSet hprintRequestSet = new HashPrintRequestAttributeSet();
     if (printJob.printDialog(hprintRequestSet)) { stuff n more stuff }
[/CODE]

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,
Dr. A>
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.098 seconds with 20 queries.