1
When I create a screen in Scene Builder in Javafx, comes as default three buttons in the upper corner of the screen that are: minimize, maximize and the close-up.
My question
How I can manipulate and implement the button click event close-up (X), so that when the user clicks on close I would perform some action or method?
I don’t mean to be boring, but you could elaborate on the questions, so they don’t look vague. For example, adding an example you’ve already done or tried. Again, I found a example in SOEN, see if you can adapt.
– user28595
In this example was created a button where I click to close the Stage, I would like to know some method able to identify when the user clicked the close button in the upper corner of the screen what is already default when creating a screen in the Scene Builder !
– Bruno
@diegofm edited his question. Bruno see if my edition left the question clearer according to what you want?
– gato
Yes, thank you very much !
– Bruno
@drmcarvalho turned out great!
– user28595
Bruno, look at some of these answers of this link.
– user28595
@Bruno you can create the question normally, but avoid erasing and recreating the same always, this can be seen badly. Read on [Ask] to elaborate a question that is easy to understand and so get an answer. And be patient, sometimes it takes someone a while to answer.
– user28595
@Bruno, you’ve already done it?
– Paulo Weverton