Here you can find the source of showSuccess(JFrame frame)
public static void showSuccess(JFrame frame)
//package com.java2s; //License from project: Open Source License import javax.swing.JFrame; import javax.swing.JOptionPane; public class Main { public static final String SAVE_SUCCESS_TITLE = "Succcess!"; public static final String SAVE_SUCCESS_MESSAGE = "Wrote file successfully!"; public static void showSuccess(JFrame frame) { JOptionPane.showMessageDialog(frame, SAVE_SUCCESS_MESSAGE, SAVE_SUCCESS_TITLE, JOptionPane.INFORMATION_MESSAGE); }/*from w w w. ja v a 2 s .com*/ }