BicepBuddyApp/src/main/java/bicepBuddyPackage/Master.java
private void initialize() {

		frame = new JFrame();
		frame.setTitle("Bicep Buddy v0.3");
		frame.setResizable(false);
		frame.setBounds(100, 100, 900, 600);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

		menuBar = new JMenuBar();
		frame.setJMenuBar(menuBar);
		
		loadingLabel.setForeground(Color.BLUE);

		JMenu login = new JMenu("Login");
		login.setFont(new Font("Segoe UI", Font.PLAIN, 12));
		login.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				menuBar.add(loadingLabel);
				menuBar.revalidate();
				menuBar.repaint();
				
				new SwingWorker<Void, Void>(){

					@Override
					protected Void doInBackground() throws Exception {
						updateFrame(new Login());
						return null;
					}
					
					protected void done() {
						menuBar.remove(loadingLabel);
						
						menuBar.revalidate();
						menuBar.repaint();
					}
				}.execute();
				
			}
		});
		menuBar.add(login);

		JMenu signUp = new JMenu("Sign Up");
		signUp.setFont(new Font("Segoe UI", Font.PLAIN, 12));
		signUp.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				menuBar.add(loadingLabel);
				menuBar.revalidate();
				menuBar.repaint();
				
				new SwingWorker<Void, Void>(){

					@Override
					protected Void doInBackground() throws Exception {
						updateFrame(new Signup());
						return null;
					}
					
					protected void done() {
						menuBar.remove(loadingLabel);
						
						menuBar.revalidate();
						menuBar.repaint();
					}
				}.execute();
			}
		});
		menuBar.add(signUp);


		panel = new Login();
		frame.getContentPane().add(panel);

		frame.setVisible(true);
	}
/**
	 * Initialize the contents of the frame.
	 * FACADE: encapsulates the initialization process.
	 * COMMAND PATTERN: Every ActionListener represents an example of command.
	 */
Initialize the contents of the frame.
FACADE: encapsulates the initialization process.
COMMAND PATTERN: Every ActionListener represents an example of command.
Initialize the contents of the frame . FACADE : encapsulates the initialization process . COMMAND PATTERN : Every ActionListener represents an example of command .
private void initialize() {
		frame = new JFrame();
		frame.setTitle("Bicep Buddy v0.3");
		frame.setResizable(false);
		frame.setBounds(100, 100, 900, 600);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		menuBar = new JMenuBar();
		frame.setJMenuBar(menuBar);
		loadingLabel.setForeground(Color.BLUE);
		JMenu login = new JMenu("Login");
		login.setFont(new Font("Segoe UI", Font.PLAIN, 12));
		login.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent arg0) {
				menuBar.add(loadingLabel);
				menuBar.revalidate();
				menuBar.repaint();
				new SwingWorker<Void, Void>(){
					@Override
					protected Void doInBackground() throws Exception {
						updateFrame(new Login());
						return null;
					}
					protected void done() {
						menuBar.remove(loadingLabel);
						menuBar.revalidate();
						menuBar.repaint();
					}
				}.execute();
			}
		});
		menuBar.add(login);
		JMenu signUp = new JMenu("Sign Up");
		signUp.setFont(new Font("Segoe UI", Font.PLAIN, 12));
		signUp.addMouseListener(new MouseAdapter() {
			@Override
			public void mouseClicked(MouseEvent e) {
				menuBar.add(loadingLabel);
				menuBar.revalidate();
				menuBar.repaint();
				new SwingWorker<Void, Void>(){
					@Override
					protected Void doInBackground() throws Exception {
						updateFrame(new Signup());
						return null;
					}
					protected void done() {
						menuBar.remove(loadingLabel);
						menuBar.revalidate();
						menuBar.repaint();
					}
				}.execute();
			}
		});
		menuBar.add(signUp);
		panel = new Login();
		frame.getContentPane().add(panel);
		frame.setVisible(true);
	}
private void initialize ( ) { frame = new JFrame ( ) ; frame . setTitle ( "Bicep Buddy v0.3" ) ; frame . setResizable ( false ) ; frame . setBounds ( 100 , 100 , 900 , 600 ) ; frame . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; menuBar = new JMenuBar ( ) ; frame . setJMenuBar ( menuBar ) ; loadingLabel . setForeground ( Color . BLUE ) ; JMenu login = new JMenu ( "Login" ) ; login . setFont ( new Font ( "Segoe UI" , Font . PLAIN , 12 ) ) ; login . addMouseListener ( new MouseAdapter ( ) { @ Override public void mouseClicked ( MouseEvent arg0 ) { menuBar . add ( loadingLabel ) ; menuBar . revalidate ( ) ; menuBar . repaint ( ) ; new SwingWorker < Void , Void > ( ) { @ Override protected Void doInBackground ( ) throws Exception { updateFrame ( new Login ( ) ) ; return null ; } protected void done ( ) { menuBar . remove ( loadingLabel ) ; menuBar . revalidate ( ) ; menuBar . repaint ( ) ; } } . execute ( ) ; } } ) ; menuBar . add ( login ) ; JMenu signUp = new JMenu ( "Sign Up" ) ; signUp . setFont ( new Font ( "Segoe UI" , Font . PLAIN , 12 ) ) ; signUp . addMouseListener ( new MouseAdapter ( ) { @ Override public void mouseClicked ( MouseEvent e ) { menuBar . add ( loadingLabel ) ; menuBar . revalidate ( ) ; menuBar . repaint ( ) ; new SwingWorker < Void , Void > ( ) { @ Override protected Void doInBackground ( ) throws Exception { updateFrame ( new Signup ( ) ) ; return null ; } protected void done ( ) { menuBar . remove ( loadingLabel ) ; menuBar . revalidate ( ) ; menuBar . repaint ( ) ; } } . execute ( ) ; } } ) ; menuBar . add ( signUp ) ; panel = new Login ( ) ; frame . getContentPane ( ) . add ( panel ) ; frame . setVisible ( true ) ; }
Initialize the contents of the frame.
Initialize the contents of the frame .