Hello and welcome to the Java Programming Forums.

You were very close to making this code work. I have made a few changes for you:



package test1;
import javax.swing.*;
public class...