JOptionPane.showMessageDialog(null, "Привіт Світ!");
// null - вікно поруч з формою, this - вікно над формою