Skip to main content

Posts

Showing posts from May, 2012

JAVA CODE TO ADD BUTTONS IN MESAAGE DIALOG BOX (JOPTIONPANE)

 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]  ); }