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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -