A
A
Anton @ Lyalin2017-04-07 11:17:07
Java
Anton @ Lyalin, 2017-04-07 11:17:07

How to show CheckBox active or inactive after window start in JavaFX????

There is a config file that has parameters (Integer - CheckBox activity), there is a controller to which I specify what to do after clicking on the CheckBox (set active or inactive), but after the window starts, everything is reset to default. How to make sure that after the window is launched, the checkboxes are marked as written in the config file. In Main there is a start of this window. Controller is what needs to be done. But I don't know how to install checkboxes after launch and where to register them.b97860f63d42407e971368127bb4cbf8.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Alexandrov, 2017-04-07
@toxa_1995

You read parameters from your config and further

нужный_чекбокс.setSelected(true); //поставить галочку

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question