I
want to share how to Make DIALOG in JAVA SE. You can use this code
but if you copy this code and paste in your blog/website, please insert this
link of article.
import javax.swing.JOptionPane;
public class Main {
public Main() {
}
public static void main(String[] args) {
JFrame frame =new JFrame("Interface Frame in Java");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.show();
JOptionPane.showConfirmDialog(frame,"Example of confimation dialog","Title of confirmation",JOptionPane.OK_CANCEL_OPTION,JOptionPane.QUESTION_MESSAGE);
}
}
EXECUTE :
0 komentar:
Posting Komentar