swing - Disable NO_BUTTON from JOptionPane Java if a condition is true -


i used showconfirmdialog method joptionpane options: yes_no_cancel. how can have access , disable no_button if condition true? thank you!

why not show different type of dialog if said condition true?

if(cancancel) {     joptionpane.showconfirmdialog(" blah blah blah "); } else {     joptionpane.showmessagedialog(" blah blah blah "); } 

Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -