How to make Dialog Window pop up when the program starts?

1.7k Views Asked by At

I am working on a Rock Paper Scissors Game and am wondering how I would make a Dialog Box pop up every time the program is launched. This is what the main JFrame looks like:

enter image description here

This is what I want to pop up when the program is launched:

enter image description here

Is there any way I can make the Dialog Box pop up when you run the program?

1

There are 1 best solutions below

5
João Martins On

What you really want is a JOptionPane that can be customized like the Dialog Box you showed. You can see a related answer here:

Java - How to create a custom dialog box?