import javax.swing.JOptionPane; public class Main { public static void main(String[] argv) throws Exception { int response = JOptionPane.showConfirmDialog(null, "Should i delete all files?"); } }