Printer.getDefaultPrinter()
showPrintDialog(null)
printPage
printContent
In our team project, after we created a PrinterJob class we generated a node representing printable content. Each card in the lesson plan is represented as a Node, and these nodes are arranged vertically in a VBox (printableContent).
How did you implement it with the print button? When we tried to run it just showed a blank screen.
It can be tricky this time around because on the recent sprint we were told to find a way to print in a way where they only see the text. Perhaps you create a class that is used to filter the cards and the give a nice format given all the cards from the plan. Like if you have a plan class you have get all cards in that plan in the plan class and connecte it to the build print format class and print it?