BicepBuddyApp/src/main/java/bicepBuddyPackage/Master.java
public static void updateFrame(JPanel j) {
		frame.getContentPane().removeAll();
		panel = j;
		frame.getContentPane().add(panel);
		frame.setVisible(true);
		frame.revalidate();
		frame.repaint();
		
		// make sure to stop the thread that is running the DM's.
		if(DMController.getInstance() != null) {
			Master.getInstance().stop = true;
		}
		if(DMController.getInstance() != null) {
			DMController.getInstance().setNumMessages(0);
		}
	}
//FACADE: Handles switching out the panel every time we change views.

Handles switching out the panel every time we change views.
Handles switching out the panel every time we change views .
public static void updateFrame(JPanel j) {
		frame.getContentPane().removeAll();
		panel = j;
		frame.getContentPane().add(panel);
		frame.setVisible(true);
		frame.revalidate();
		frame.repaint();
		if(DMController.getInstance() != null) {
			Master.getInstance().stop = true;
		}
		if(DMController.getInstance() != null) {
			DMController.getInstance().setNumMessages(0);
		}
	}
public static void updateFrame ( JPanel j ) { frame . getContentPane ( ) . removeAll ( ) ; panel = j ; frame . getContentPane ( ) . add ( panel ) ; frame . setVisible ( true ) ; frame . revalidate ( ) ; frame . repaint ( ) ; if ( DMController . getInstance ( ) != null ) { Master . getInstance ( ) . stop = true ; } if ( DMController . getInstance ( ) != null ) { DMController . getInstance ( ) . setNumMessages ( 0 ) ; } }
FACADE: Handles switching out the panel every time we change views.
FACADE : Handles switching out the panel every time we change views .
// make sure to stop the thread that is running the DM's.
