public Gui(){
        
		picLabel=new JLabel();
        picLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/phms_se/resources/img/bg.jpg")));
		this.add(picLabel);
		picLabel.setLayout(new GridBagLayout());
					   
		loginPanel = new JPanel(new GridBagLayout());
		loginPanel.setPreferredSize(new java.awt.Dimension(800, 600));
		GridBagConstraints c = new GridBagConstraints();
		
		if (shouldFill){
			c.fill=GridBagConstraints.HORIZONTAL;
		}
		PhMS=new JLabel("PhMS");
		PhMS.setFont(new Font("Comic Sans",Font.BOLD, 60));
		c.gridx=0;
		c.gridy=0;
		c.gridwidth=3;
		c.insets= new Insets(0,65,100,20);
	picLabel.add(PhMS,c);
		JLabel username;
		username = new JLabel("Username:");
		username.setFont(new Font("Comic Sans",Font.BOLD, 14));
		
		c.fill=GridBagConstraints.HORIZONTAL;
		c.gridx=0;
		c.insets= new Insets(0,20,0,20);
		c.gridy=1; 
		c.gridwidth=1;
		picLabel.add(username,c);
		JLabel password;
		password = new JLabel("Password:");
		password.setFont(new Font("Comic Sans",Font.BOLD, 14));
		c.fill=GridBagConstraints.HORIZONTAL;
		c.gridx=0;
		c.insets= new Insets(0,20,0,20);
		c.gridy=2;
		picLabel.add(password, c);
		loginPanel.setBackground(Color.gray);

		userField =new JTextField("",15);
		c.fill=GridBagConstraints.HORIZONTAL;
		c.gridx=1;
		c.insets= new Insets(0,0,0,0);
		c.gridy=1;
		picLabel.add(userField, c);
		passField =new JPasswordField("",10);
		c.fill=GridBagConstraints.HORIZONTAL;
		c.gridx=1;
		c.gridy=2;
		picLabel.add(passField, c);
		
		warning = new JLabel(" ");
		password.setFont(new Font("Comic Sans",Font.BOLD, 14));
		c.fill=GridBagConstraints.HORIZONTAL;
		c.insets= new Insets(0,0,0,0);
		c.gridx=0;
		c.gridy=6;
		c.gridwidth=2;
		picLabel.add(warning, c);
		warning.setForeground(Color.red);

		login = new JButton("Login");
		login.setFont(new Font("Comic Sans",Font.BOLD, 16));
		c.fill=GridBagConstraints.HORIZONTAL;
		c.ipady=20;
		c.insets= new Insets(10,0,0,0);
		c.gridwidth=2;
		c.gridx=0;
		c.gridy=4;
		picLabel.add(login,c);

		exit = new JButton ("Exit");
		exit.setFont(new Font("Comic Sans",Font.BOLD, 16));
		c.gridx=0;
		c.gridy=5;
		c.anchor=GridBagConstraints.LAST_LINE_END;
		picLabel.add(exit,c);
		
		login.addActionListener(this);
	    exit.addActionListener(this);
	    
		setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
		setPreferredSize(new Dimension(1280, 800));
	    pack();
	    setVisible(true); 		   
	}