Search code examples
javapdfjavafxdocx

Can you load a .docx file in a JavaFX interface using Scene Builder?


I'm trying to build a java application using JavaFX which has a list of objects displayed in a table and each object has a word document associated with it. Also the table has a double click event for each line which loads up the word document and displays it in another section. The two sections are placed inside a Split Pane. Is it possible to load a word document using JavaFX? If not, a pdf file should be fine as well, but I can't find any good tutorials for Java 8.


Solution

  • Here are some candidates to look at:

    https://poi.apache.org/ for MS docs in general

    https://github.com/dlsc-software-consulting-gmbh/PDFViewFX for PDF viewing

    And upgrade to a more recent version of Java. 16 is the current version - not 8.