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
Post a Comment