Over the years, I’ve seen a lot of people ask, “How can I print this TableView?”, or some other similar question. I’ve always thought this was a bit silly, a TableView is a screen thing (or a VBox, or whatever), and printing it doesn’t make much sense.

Most of the answers I’ve seen to these questions are along that line - printing is a data-centric thing and you should do it from the back-end as it has nothing to do with your GUI.

But it turns out that JavaFX does have classes designed to enable printing of screen layouts! Go figure.

Edward Stephen Jr. has an new article out introducing the concept. I think it’s worth a read.

I still don’t know what happens if you print a TableView, but at least there is a way to find out.

No comments yet!

JavaFX

!javafx@programming.dev

Create post

JavaFX is a software platform and a graphical user interface (GUI) toolkit that allows developers to create rich and interactive applications for desktop, mobile, and embedded devices. It provides a powerful set of tools and APIs for building modern, visually appealing applications.

JavaFX was introduced as a successor to the Swing framework. It is designed to provide a more advanced and flexible way of developing user interfaces compared to Swing, with improved graphics and multimedia capabilities.

Rules

  1. No NSFW/NSFL content
  2. No service requests/offers
  3. Must be JavaFX related
  4. No politics

Community stats

  • 1

    Monthly active users

  • 11

    Posts

  • 0

    Comments