private void makeWin(int n){
			switch(n){
				case 1:    //master control
							cpanel = new JFrame("Cellular Explorer v0.1.0");
							cpanel.getContentPane().add( Alice ); Alice.setVisible(true); Alice.setEnabled(true);
							cpanel.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
							cpanel.pack();
							Alice.init();
							cpanel.setResizable(false);
							cpanel.setVisible(true);
							cpanel.setLayout(new FlowLayout());
							// cell editor
							cEdit = new JFrame("Cell Editor");
							Emily = new cellEditor(); 
							cEdit.getContentPane().add(Emily);
							cEdit.setDefaultCloseOperation( JFrame.HIDE_ON_CLOSE );
							cEdit.pack();
							cEdit.setLocation(0,cpanel.getHeight());
							//cell picker
							 cPick = new JFrame("Cell Picker");
							JSeparator bernie = new JSeparator(JSeparator.VERTICAL);
							bernie.setPreferredSize(new Dimension(5,200));
							Fred = new cellPicker(); 
							Gwen = new cellPicker();
							cPick.setLayout(new FlowLayout());
							cPick.getContentPane().add(Fred);
							cPick.getContentPane().add(bernie);
							cPick.getContentPane().add(Gwen);
							cPick.setDefaultCloseOperation( JFrame.HIDE_ON_CLOSE );
							cPick.pack();
							cPick.setLocation(0,cpanel.getHeight()+cEdit.getHeight());
							
							//Selection Tools
							sBox = new JFrame("Selection Tools");
							Hank = new selectionControl(); 
							sBox.getContentPane().add(Hank);
							sBox.setDefaultCloseOperation( JFrame.HIDE_ON_CLOSE );
							sBox.pack();
							//brushes
							 brushCup = new JFrame("Brushes");
							Inez = new brushControl(); 
							brushCup.getContentPane().add(Inez);
							brushCup.setDefaultCloseOperation( JFrame.HIDE_ON_CLOSE );
							brushCup.pack();
							brushCup.setLocation(cpanel.getWidth(),sBox.getHeight());
							Inez.init();
							//set window format for the automaton
							v1.setParameter("WSX", cEdit.getWidth());
							v1.setParameter("WSY", cpanel.getHeight());
							v1.setParameter("WH", cEdit.getHeight());
							break;
							
				case 2:   npanel = new JFrame("New Automaton");
						  whiteRabbit = new newControl();
						  npanel.getContentPane().add(whiteRabbit);
						  npanel.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);
						  npanel.pack(); 
						  npanel.setResizable(false);
						  npanel.setVisible(true);
						  whiteRabbit.setVisible(true);
						  whiteRabbit.adducListener(this);
						  break;
						  
				case 3: 	//State Editor
							 sedit = new JFrame("State Editor");
							Dan = new stateEditor(); 
							sedit.getContentPane().add(Dan);
							sedit.setDefaultCloseOperation( JFrame.HIDE_ON_CLOSE );
							sedit.pack();
							sedit.setLocation(cEdit.getWidth()+v1.disp.getWidth(),cpanel.getHeight());
						  winflag[0] = true;
						  sedit.setResizable(false);
						  sedit.setVisible(true);
						  Dan.setVisible(true);
						  Dan.adducListener(this);
						  break;
						  
				case 4:  //Cell Editor
							winflag[1] = true;
						  cEdit.setResizable(false);
						  cEdit.setVisible(true);
						  Emily.setVisible(true);
						  Emily.adducListener(this);
						  break;
						  
				case 5: 	//Cell Picker
							winflag[2] = true;
						  cPick.setResizable(false);
						  cPick.setVisible(true);
						  Fred.setVisible(true);
						  Gwen.setVisible(true);
						  Fred.adducListener(v1.castor); v1.castor.setCP(Fred);Fred.setCOH(v1.castor);Fred.adducListener(v1);
						  Gwen.adducListener(v1.pollux); v1.pollux.setCP(Gwen);Gwen.setCOH(v1.pollux);Gwen.adducListener(v1);
						  break;
						  
				case 6:  //Selection Tools
							winflag[3] = true;
							sBox.setLocation(cpanel.getWidth(),0);
						  sBox.setResizable(false);
						  sBox.setVisible(true);
						  Hank.setVisible(true);
						  Hank.adducListener(this);
						  break;
						  
				case 7: 	//brushes
							winflag[4] = true;
						  brushCup.setResizable(false);
						  brushCup.setVisible(true);
						  Inez.setVisible(true);
						  Inez.adducListener(this);
						  break;
						}
					}