import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class Alert extends JFrame {
	
	
	
	
	public Alert(boolean win){
		
		if(win){
			setSize(400,50);
			setTitle("Congratulations");
			setResizable(false);
			JLabel text = new JLabel("Congratulations, you completed the Sudoku board");
			setLayout(new BorderLayout());
			setLocationRelativeTo(null);
			add(text, BorderLayout.CENTER);
			setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
			setVisible(true);
		}
		else{
			setSize(400,50);
			setTitle("Sorry");
			setResizable(false);
			JLabel text = new JLabel("Sorry, you did not complete the Sudoku board correctly");
			setLayout(new BorderLayout());
			setLocationRelativeTo(null);
			add(text, BorderLayout.CENTER);
			setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
			setVisible(true);
		}
	}
	
	
	
	
}

@@ -85,36 +85,8 @@
 el;%0D
-%0Aimport javax.swing.JPanel;%0D
 %0A%0D%0Ap
@@ -124,24 +124,72 @@
 e %7B%0D%0A%09%0D%0A%09%0D%0A%09
+private static final long serialVersionUID = 1L;
 %0D%0A%09%0D%0A%09public

Update Alert.java