After using the coding for creating the dialog boxes, you can use the following codes for completion of that dialog boxes. The codes that is mentioned by the 'Viensterrr', is just to create the dialog boxes. You can use the following code for doing the further coding into that :
Code:
JButton b8 = new JButton("How was that.!?");
b8.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent ae) {
JOptionPane.showConfirmationDialog(null,
"Did you liked the Guide?",
"Question (application-modal dialog)",
JOptionPane.Yes_NO_OPTION,
JOptionPane.QUESTION_MESSAGE);
}
})
Bookmarks