JAVA CODE TO ADD BUTTONS IN MESAAGE DIALOG BOX (JOPTIONPANE) May 28, 2012 public void message{ Object[] options ={ "COPY","CUT","DO NOTHING" }; // for buttons JOptionPane.showOptionDialog (frame.this , "Choose Operation", "File Options", JOptionPane.YES_OPTION ,JOptionPane.NO_OPTION ,null ,options ,options[2] ); } CONTINUE READING >>>