Window freezes when pressed CTRL + P
- From: srinivas.veeranki@xxxxxxxxx
- Date: 24 Aug 2006 02:45:23 -0700
In my application, When I Select File -> Print option the following
code executes fine, Where as I pressed CTRL + P from Keyboard my system
is hanging at this statement PrintService service =
ServiceUI.printDialog(null, 200, 200,printService, defaultService,
flavor, pras);
The following is the code, I used in my application. Please Help me
regaurding this.
PrintRequestAttributeSet pras = new HashPrintRequestAttributeSet();
DocFlavor flavor = DocFlavor.INPUT_STREAM.PNG;
PrintService printService[] = PrintServiceLookup
.lookupPrintServices(flavor, pras);
PrintService defaultService = PrintServiceLookup
.lookupDefaultPrintService();
PrintService service = ServiceUI.printDialog(null, 200, 200,
printService, defaultService, flavor, pras);
if (service != null) {
new PrintTask(service, pras).start();
}
.
- Prev by Date: Problem with setUndecorated() method in JFrame
- Next by Date: Re: Java GUI(Swing) VS Windows forms in VB6/VB.NET
- Previous by thread: Problem with setUndecorated() method in JFrame
- Next by thread: transparent colors and setXORMode doesn't work together
- Index(es):
Relevant Pages
|