[英]How can I make a Java print dialog stay on top or non-modal? (Linux)
If I click on the main JFrame, the Java print dialog is hidden and input is blocked.如果我单击主 JFrame,则 Java 打印对话框被隐藏并且输入被阻止。 I tried switching from PrinterJob printDialog() to ServiceUI.printDialog().
我尝试从 PrinterJob printDialog() 切换到 ServiceUI.printDialog()。 I also tried ServiceUIFactory factory = printService.getServiceUIFactory() but that returns null;
我也试过 ServiceUIFactory factory = printService.getServiceUIFactory() 但返回 null; How can I keep the dialog on top or make it non-modal?
如何将对话框保持在顶部或使其成为非模态?
The JDK is frozen at 1.7 due to inaccessible kiosks.由于无法访问信息亭,JDK 被冻结在 1.7。 The window manager is FVWM.
window 管理器是 FVWM。
Thanks谢谢
PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null);
PrintService printService = PrintServiceLookup.lookupDefaultPrintService();
PrintRequestAttributeSet attrs = new HashPrintRequestAttributeSet();
//attrs.add...
PrintService service = ServiceUI.printDialog(null, 100, 100, services, printService, null, attrs);
The problem was transient window settings in the window manager FVWM.问题是 window 管理器 FVWM 中的瞬态 window 设置。 When VGR tried Gnome, that pointed me to the window manager.
当 VGR 尝试 Gnome 时,这将我指向 window 管理器。
Commented DontRaiseTransient in globalfeel.在 globalfeel 中评论了 DontRaiseTransient。
#Style * DontRaiseTransient
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.