JavaFx – Modify a Modal Dialog when Shown

Note: Post is back dated by a year to keep it off the front page.

The latest Java app is progressing well. The AboutBox needs some modification to the text after it launches.

The app is built in JavaFx using IntelliJ. It is far along enough to build a modal AboutBox. The Box has a TextArea containing a description of the program is not editable. All that works fine. But the area can’t be formatted with new lines in the SceneBuilder, so the fix is to load up the content when the DialogBox launches. The code works to modify the TextArea with new text, but not when the Dialog Box is Shown. At that time, the changes have no effect on the TextArea.

Continue reading “JavaFx – Modify a Modal Dialog when Shown”