A
A
Anton @ Lyalin2017-04-13 15:28:05
JavaFX
Anton @ Lyalin, 2017-04-13 15:28:05

How to access TextArea from another window?

There is a main window with TextArea, there is a second Filter window. How do I access the first window to pass text?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Talaiko, 2018-03-12
@jsdevel

Let's have a link to the desired controller. Pass to the controller of the current window and manipulate the data of the parent window controller there.
How to get a link is up to you. Some make a static link and work through it. Some, when calling a child window, pass a reference to themselves.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question