As i said earliar i am making HRMS , the last phase is logout button.
when logout button is clicked , an option dialog should appear which ask for yes or no .

PROBLEM is i dont know how to use JOptionPane.YES_NO_OPTION so that i can give user choice of yes or no before logging out finally..

i also thinking how to use the input (yes or no ) given by the user.
Rest i know if i am ab to use the input given by the user.

Please help as soon as possible.

Thanks in advance

Recommended Answers

All 2 Replies

Read the API doc for the JOptionPane class. There is an example there that uses the yes no option.

Read the API doc for the JOptionPane class. There is an example there that uses the yes no option.

Thanks ..
Problem was solved , but i forgot to thank ..
So i am doing it now..
Thank you so much for the support

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.