Queue print jobs in a separate single Thread for JavaFX
问题 currently I am experimenting with Concurrency in Java/JavaFX. Printing must run in a different thread otherwise it will make the JavaFX main thread freeze for a couple seconds. Right now my printing is done with this simplified example. public void print(PrintContent pt) { setPrintContent(pt); Thread thread = new Thread(this); thread.start(); } @Override public void run() { // send content to printer } With this code I am sending many print jobs parallel to my printer. Therefore I get the