#Button Not Working??

22 messages · Page 1 of 1 (latest)

limber torrentBOT
#

This post has been reserved for your question.

Hey @hard sierra! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

willow orchid
#

Please show some code

#

And some log messages

#

What is sense builder

#

Can you provide a link that i can look?

#

Did you mean SceneBuilder?

#

Do you know where to find the code of clickListener of the button

#

Looks like the method does nothing

#

What was the button suppose to do?

#

have your linked it properly?

#

So is your quit button calling the right method

#

Can you add

System.out.println("QUIT CLICKED");

To your method

Should look something like this

@FXML
    void welcomeMessage(ActionEvent event) {
System.out.println("QUIT CLICKED");
        int input = JOptionPane.showOptionDialog(null, "You Sure You Want Quit?", "Qutting?", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null, null, null);

        if(input == JOptionPane.OK_OPTION)
        {
            Runtime.getRuntime().exit(1);
        }}
#

Or if you use logger then use the logger

#

and rerun the program
and click the click button
and check your log

#

Did you click the quit button?

#

So check the log
Do you see "QUIT CLICKED"

#

Could you double check your quit button and see which action is it calling

#

where is the id?

#

Please use /close

#

@hard sierra