public void gui(){
        /*
         *Create JFrame and apply settings for size and exiting
         */
        mainFrame = new JFrame();

        /*
         *Sets the main panel up
         */

        titlePanel = new JPanel();
        titlePanel.setBackground(Color.WHITE);

        /*
         *Sets up the text field and applies the settings below
         */    
        titleField = new JTextField();
        titleField.setEditable(false);
        titleField.setFont(new java.awt.Font("Tahoma", 0, 12));
        titleField.setHorizontalAlignment(JTextField.RIGHT);
        titleField.setText("Cardiff Quiz Application");
        titleField.setBorder(null);

        titlePanel.add(titleField);

        /*
         *Add ButtonPanel to the frame and apply settings for size and exiting
         */
        mainFrame.add(e = new LoginPanel(), BorderLayout.CENTER);


        mainFrame.add(titlePanel, BorderLayout.NORTH);
        mainFrame.setVisible(true);
        mainFrame.setExtendedState(Frame.MAXIMIZED_BOTH); 
        mainFrame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
        
             
        ActionListener loginListener;
        loginListener = new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent actionEvent) {
                removePanel();
                loadPanel(new LoginPanel());
            }
        };
    }