09.04.2018 Views

tornadofx-guide

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Config Settings and State<br />

Config settings and state<br />

Saving application state is a common requirement for desktop apps. TornadoFX has several<br />

features which facilitates saving of UI state, preferences and general app configuration<br />

settings.<br />

The config helper<br />

Each component can have arbitrary configuration settings that will be saved as property files<br />

in a folder called conf inside the current program folder.<br />

Below is a login screen example where login credentials are stored in the view specific<br />

config object.<br />

253

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!