خرید بک لینک

Vote count: 0

i got an error on JavaFX timeline and printing. I set three frames in timeline, fill-in data in a form , wait 5 seconds and print out the form on A4 paper:

Timeline timeline = new Timeline( new KeyFrame( Duration.seconds(0), event -> MakeQR(canvas.getGraphicsContext2D())
), new KeyFrame(Duration.seconds(5)),
new KeyFrame( Duration.seconds(2), event -> print(root)) );

but i got an exception from J2DprinterJob:

Exception("Printing is not allowed during animation or layout processing");

please advise an possible solution, thank you.

asked 32 secs ago

برچسب: نویسنده: استخدام کار تاريخ: شنبه 29 خرداد 1395 ساعت: 16:24

صفحه بندی