Skip to content
This repository was archived by the owner on Sep 28, 2024. It is now read-only.
Edvin Syse edited this page Jun 22, 2016 · 11 revisions

WikiDocumentationFXML

(Work in progress)

FXML user interfaces

The type safe builders of TornadoFX provide a fast, easy and declarative way to construct your UI and is for most cases your best choice. JavaFX does however also support an XML-based language that can do the same thing. With FXML it is very easy to separate your UI logic code from the code that constructs the UI. The FXML files can also be processed by Scene Builder, a visual layout tool that lets you build your user interface with drag and drop and immediately see the result in a WYSIWYG editor.

If you're converting an existing JavaFX application to TornadoFX, chances are your UI is already constructed with FXML, and you might want to keep it that way instead of converting the code to use the type safe builders.

If you are unfamiliar with FXML and want to stick to the builders, feel free to skip this chapter, or take a look at the official FXML documentation for more information.

fxml

fxid

Actions

Localization

A note on Scene Builder

The tool was created by Oracle/Sun but is now maintained by Gluon, an innovative company that invests heavily in JavaFX technology, especially for the mobile market.

Next: Application Startup

Clone this wiki locally