logo
  • 教程列表
  • SO官方文档
  • 印花
    • 基本打印
    • 使用系统对话框打印
  1. StackOverflow 文档
  2. javafx 教程
  3. 印花
  4. 使用系统对话框打印

使用系统对话框打印

Created: November-22, 2018

PrinterJob pJ = PrinterJob.createPrinterJob();

if (pJ != null) {
    boolean success = pJ.showPrintDialog(primaryStage);// this is the important line
    if (success) {
        pJ.endJob();
    }
}
  • 基本打印

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明