1- import static javax.swing.JOptionPane.showMessageDialog; 2- showMessageDialog(null, "My Result est " + ResultVariable);