4 Replies Latest reply: Oct 7, 2004 1:31 PM by 800382 RSS

    Can i disable a button in JOptionPane?


      i have a jtree inside a joptionpane, with the OK_CANCEL option....i want to enable to OK button only depending which item from the tree has been selected. I have my tree listener all setup to do this, but i havent been able to figure out how to disable the button.