jmm
2
Q:

dialog box in java swing

JOptionPane.showMessageDialog(null, "java is fun");
1
import javax.swing.JOptionPane;

public class Main {
  public static void main(String[] argv) throws Exception {

    JOptionPane.showMessageDialog(null, "I am happy.");

  }
}
0

New to Communities?

Join the community