package schedtool.scheduling_ui;

import javax.swing.*;

public class ConflictAlert extends JFrame {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public ConflictAlert() {
		JPanel panel = new JPanel();
		setTitle("Constraint Violation");

		panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
		
		JLabel titleLabel = new JLabel("The change(s) you have made caused a constraint");
		JLabel warningLabel = new JLabel("violation as indicated by the highlighted rows.");
		JLabel actionLabel = new JLabel("Please be sure to address this problem.");

                JButton okButton = new JButton("Ok");

		add(panel);
		
		panel.add(titleLabel);
		panel.add(warningLabel);
		panel.add(actionLabel);	
                panel.add(okButton);

		pack();
	}	

}