public static JPanel ListObjectCard (){
			
			// Define interface.
			JPanel card = new JPanel();
		
			// Define the buttons.
			JButton jbtC = new JButton("Client");
			JButton jbtF = new JButton("Flight");
			
			final JButton CreateBt = new JButton("Create Object");
			CreateBt.setEnabled(false);			
			final JButton EditBt = new JButton("Edit Selection");
		    EditBt.setEnabled(false);
		    final JButton ListLogBt = new JButton("List Itinerary");
		    ListLogBt.setEnabled(false);
		    final JButton ListMovieBt = new JButton("List Movies");
		    ListMovieBt.setEnabled(false);
		    final JButton DeleteBt = new JButton("Delete Selection");
		    DeleteBt.setEnabled(false);
		    final JButton BookFlightBt = new JButton("Book Flight");
		    BookFlightBt.setEnabled(false);
		
		    Globals.listobjects = TravelGUI.ATAControl.RefreshList(Globals.listobjects);

			jbtC.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					System.out.println("Flag Action Press - Client +");	
					Globals.ListTypeControl = 0; // is CUSTOMER
					Globals.listobjects = TravelGUI.ATAControl.RefreshList(Globals.listobjects);
					//CreateBt.setName("Create Client");
					CreateBt.setEnabled(true);
				}
			});
			
			
			jbtF.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
					System.out.println("Flag Action Press - Flight");
					Globals.ListTypeControl = 1; // is FLIGHT
					Globals.listobjects = TravelGUI.ATAControl.RefreshList(Globals.listobjects);
					//CreateBt.setName("Create Flight");
					CreateBt.setEnabled(true);
				}
			});
		
			
			CreateBt.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
		
					//System.out.println("Event - Edit Object call. Using ID: " + Globals.ActiveSel + Globals.ListTypeControl );
					
					System.out.println("Checking....");

					if (Globals.ListTypeControl == 0){
						CardLayout cl = (CardLayout)(Globals.cards.getLayout());
						cl.show(Globals.cards, Globals.CREATECLIENTPANEL);
						}
					
					else if (Globals.ListTypeControl == 1){
						CardLayout cl = (CardLayout)(Globals.cards.getLayout());
						cl.show(Globals.cards, Globals.CREATEFLIGHTPANEL);
					}
					
					else if (Globals.ListTypeControl == 2){
						CardLayout cl = (CardLayout)(Globals.cards.getLayout());
						cl.show(Globals.cards, Globals.CREATEMOVIEPANEL);	

					}
					
					else if (Globals.ListTypeControl == 3){
						CardLayout cl = (CardLayout)(Globals.cards.getLayout());
						cl.show(Globals.cards, Globals.CREATEMOVIEPANEL);
													
					}
					

					
				}
			});
			
			EditBt.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
		
					//System.out.println("Event - Edit Object call. Using ID: " + Globals.ActiveSel + Globals.ListTypeControl );
					
					System.out.println("Checking....");
					
					
					
					if (Globals.ListTypeControl == 0){ // Clients				
						
						Globals.cards.add(ClientClass.EditClientObjectCard(), Globals.EDITCLIENTPANEL);
						CardLayout cl = (CardLayout)(Globals.cards.getLayout());
						cl.show(Globals.cards, Globals.EDITCLIENTPANEL);					
						
					}
					else if (Globals.ListTypeControl == 1){ // Flight
						Globals.cards.add(FlightClass.EditFlightObjectCard(), Globals.EDITFLIGHTPANEL);
						CardLayout cl = (CardLayout)(Globals.cards.getLayout());
						cl.show(Globals.cards, Globals.EDITFLIGHTPANEL);								
					}
					
					else if (Globals.ListTypeControl == 2){ // Movies
						Globals.cards.add(MovieClass.EditMovieObjectCard(), Globals.EDITMOVIEPANEL);
						CardLayout cl = (CardLayout)(Globals.cards.getLayout());
						cl.show(Globals.cards, Globals.EDITMOVIEPANEL);
					}
					
					else if (Globals.ListTypeControl == 3){ // Intenery

					}
					
					
				}
			});
			
		
			
			ListMovieBt.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
		
					//System.out.println("Event - Edit Object call. Using ID: " + Globals.ActiveSel + Globals.ListTypeControl );
					
					System.out.println("Checking....");
					Globals.ActiveFlightObjID = Globals.ActiveSel;
		
					Globals.ListTypeControl = 2;
					Globals.listobjects = TravelGUI.ATAControl.RefreshList(Globals.listobjects);
				
					
					

					CreateBt.setEnabled(true);		
					EditBt.setEnabled(true);					
					ListLogBt.setEnabled(false);
					ListMovieBt.setEnabled(false);
					DeleteBt.setEnabled(true);
					
				}
			});
			
			ListLogBt.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
		
					System.out.println("Checking....");
					Globals.ActiveClientObjID = Globals.ActiveSel;
					
					Globals.ListTypeControl = 3;
					Globals.listobjects = TravelGUI.ATAControl.RefreshList(Globals.listobjects);
					
					
					
					CreateBt.setEnabled(false);		
					EditBt.setEnabled(false);					
					ListLogBt.setEnabled(false);
					ListMovieBt.setEnabled(false);
					DeleteBt.setEnabled(false);
					
					
					
		
				}
			});
			
			DeleteBt.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
		
					System.out.println("Event - Delete Object call. Using ID: " + Globals.ActiveSel);
		
					// Delete OBject
					
					
					
					
					if (Globals.ListTypeControl == 0){ // Clients		
						Globals.ActiveClientObjID = Globals.ActiveSel;
						TravelGUI.ATAControl.DeleteObject(Globals.ActiveClientObjID, Globals.ListTypeControl);
					}
					
					else if (Globals.ListTypeControl == 1){ // Flight
						Globals.ActiveFlightObjID = Globals.ActiveSel;
						TravelGUI.ATAControl.DeleteObject(Globals.ActiveFlightObjID, Globals.ListTypeControl);
					}
					
					else if (Globals.ListTypeControl == 2){ // Movie
						Globals.ActiveMovieObjID = Globals.ActiveSel;
						TravelGUI.ATAControl.DeleteMovieObject(Globals.ActiveFlightObjID,Globals.ActiveMovieObjID, Globals.ListTypeControl);

					}
					
					Globals.listobjects = TravelGUI.ATAControl.RefreshList(Globals.listobjects);
				}
			});
		
			BookFlightBt.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent e) {
		
					
					Globals.cards.add(BookObjectCard(), Globals.BOOKPANEL);
					CardLayout cl = (CardLayout)(Globals.cards.getLayout());
					cl.show(Globals.cards, Globals.BOOKPANEL);
					
					
		
				}
			});
			
			
		    //JList list; // To hold lists in the GUI     
			Globals.ActiveList = new JList(Globals.listobjects);
			Globals.ActiveList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
			Globals.ActiveList.setSelectedIndex(0);
		    // Lets change this to...
		    // list.addListSelectionListener(this);
		    // this..
			Globals.ActiveList.addListSelectionListener(new ListSelectionListener(){
				public void valueChanged(ListSelectionEvent e) {
									
					//System.out.println("Flag Action Press - ListvalueChanged");
					
					//System.out.println("ActiveSel: " + Globals.ActiveSel);
					
					Globals.ActiveSel = Globals.ActiveList.getSelectedIndex();

					System.out.println("ListSelectionEvent - Globals.ActiveSel: " +Globals.ActiveSel);
					
					
					if (Globals.ActiveSel == -1){
						
						EditBt.setEnabled(false);
						ListLogBt.setEnabled(false);
						ListMovieBt.setEnabled(false);
						DeleteBt.setEnabled(false);
						}
					else {
						

						if (Globals.ListTypeControl == 0){ // Customer
							CreateBt.setEnabled(true);
							EditBt.setEnabled(true);
							ListLogBt.setEnabled(true);
							ListMovieBt.setEnabled(false);
							DeleteBt.setEnabled(true);
							
							Globals.ActiveClientObjID = Globals.ActiveSel;
							//Globals.ActiveCustomer = Globals.ATA.CustomerArray[Globals.ActiveSel];
							
						}
						else if (Globals.ListTypeControl == 1){ // Flight
							CreateBt.setEnabled(true);
							EditBt.setEnabled(true);
							ListLogBt.setEnabled(false);
							ListMovieBt.setEnabled(true);
							DeleteBt.setEnabled(true);
							
							
							Globals.ActiveFlightObjID = Globals.ActiveSel;
							
						}
						else if (Globals.ListTypeControl == 2){ // Movie
							CreateBt.setEnabled(true);
							EditBt.setEnabled(true);
							ListLogBt.setEnabled(false);
							ListMovieBt.setEnabled(false);
							DeleteBt.setEnabled(true);
							
							Globals.ActiveMovieObjID = Globals.ActiveSel;
							
						}
						
						else if (Globals.ListTypeControl == 3){ // logs
							CreateBt.setEnabled(false);
							EditBt.setEnabled(false);
							ListLogBt.setEnabled(false);
							ListMovieBt.setEnabled(false);
							DeleteBt.setEnabled(false);
							
							Globals.ActiveLogObjID = Globals.ActiveSel;
							
						}
					}
					if (Globals.ActiveFlightObjID != -1 && Globals.ActiveClientObjID != -1){
						BookFlightBt.setEnabled(true);
					}
					

					
				}
			});
			// And thus the magic happens.
			Globals.ActiveList.setVisibleRowCount(25);
			Globals.ActiveList.setFixedCellWidth(780);
		    JScrollPane listScrollPane = new JScrollPane(Globals.ActiveList);
		    
		    
		    
		
		    
		    
		    // Set ordered layout of objects
			card.add(jbtC);
			card.add(jbtF);
		    
			card.add(listScrollPane, BorderLayout.CENTER);
		
			card.add(CreateBt);
			card.add(EditBt);
		    card.add(ListLogBt);
		    card.add(ListMovieBt);
		    card.add(DeleteBt);
		    card.add(BookFlightBt);
				
			
		
		    
			
		    //card.add(new JTextField("TextField", 20));
		    return card;
		}