public static JPanel EditFlightObjectCard (){
				
				System.out.println("EditFlightObjectCard - flag");
				JPanel card = new JPanel();
				
				
				try{
					Globals.ActiveBusinessFlight = Globals.ATA.BusFlightArray[Globals.ActiveFlightObjID];	
					Globals.ActiveEconomyFlight = Globals.ATA.EcoFlightArray[Globals.ActiveFlightObjID];
				}
				catch(ArrayIndexOutOfBoundsException e){
					Globals.ActiveBusinessFlight = new BusinessFlight();
					Globals.ActiveEconomyFlight = new EconomyFlight();
					Globals.ActiveEconomyFlight.TravelDate = new Date();
					Globals.ActiveBusinessFlight.TravelDate = new Date();
				}
				
				
				JPanel part0 = new JPanel(); // Details about page. 
				JPanel partA1 = new JPanel(); // ID Number.
				JPanel partA2 = new JPanel(); // Date.
				JPanel partB = new JPanel(); // origin.
				JPanel partC = new JPanel(); // destination.
				JPanel partD = new JPanel(); // ETD
				JPanel partE = new JPanel(); // ETA
				JPanel partF1 = new JPanel(); // Base Price
				JPanel partF = new JPanel(); // concession
				JPanel partG = new JPanel(); // groupDiscount / Eco discount.
				JPanel partH = new JPanel(); // Rate / BizRate
				JPanel partZ = new JPanel(); // Submit buttons.
				
				part0.setPreferredSize(new Dimension(800,35));
				partA1.setPreferredSize(new Dimension(800,35));
				partA2.setPreferredSize(new Dimension(800,35));
				partB.setPreferredSize(new Dimension(800,35));
				partC.setPreferredSize(new Dimension(800,35));
				partD.setPreferredSize(new Dimension(800,35));
				partE.setPreferredSize(new Dimension(800,35));
				partF1.setPreferredSize(new Dimension(800,35));
				partF.setPreferredSize(new Dimension(800,35));
				partG.setPreferredSize(new Dimension(800,35));
				partH.setPreferredSize(new Dimension(800,35));
				partZ.setPreferredSize(new Dimension(800,35));
				
				
				part0.add( new JLabel("Enter the revelent infomation for creating a new Flight Object"));
			
				final JLabel jlbID = new JLabel("Date: (Required)");
				final JLabel jtxID = new JLabel(String.valueOf(Globals.ActiveEconomyFlight.FlightNumber));
				
				partA1.add(jlbID);
				partA1.add(jtxID);	
				
				final JLabel jlbDate = new JLabel("Date: (Required)");
				final JTextField jtxDate = new JTextField(ATAControl.CreateSimpleDate(Globals.ActiveEconomyFlight.TravelDate),32);
			
				partA2.add(jlbDate);
				partA2.add(jtxDate);	
				
				final JLabel jlbOrigin = new JLabel("Origin: (Required)");
				final JTextField jtxOrigin = new JTextField(Globals.ActiveEconomyFlight.origin,20);
				
				partB.add(jlbOrigin);
				partB.add(jtxOrigin);
				
				final JLabel jlbDestination = new JLabel("Destination: (Required)");
				final JTextField jtxDestination = new JTextField(Globals.ActiveEconomyFlight.destination,20);
				
				partC.add(jlbDestination);
				partC.add(jtxDestination);
				
				final JLabel jlbETD = new JLabel("ETD: (Required)");
				final JTextField jtxETD = new JTextField(String.valueOf(Globals.ActiveEconomyFlight.ETD),20);
				
				partD.add(jlbETD);
				partD.add(jtxETD);
				
				final JLabel jlbETA = new JLabel("ETA: (Required)");
				final JTextField jtxETA = new JTextField(String.valueOf(Globals.ActiveEconomyFlight.ETA),20);
				
				partE.add(jlbETA);
				partE.add(jtxETA);
				
				final JLabel jlbPrice = new JLabel("Base Price: (Number)$");
				final JTextField jtxPrice = new JTextField(String.valueOf(Globals.ActiveEconomyFlight.basePrice),20);
				
				partF1.add(jlbPrice);
				partF1.add(jtxPrice);
				
				final JLabel jlbconcession = new JLabel("Concession Discount Rate: (Number)");
				final JTextField jtxconcession = new JTextField(String.valueOf(Globals.ActiveEconomyFlight.concession),20);
				
				partF.add(jlbconcession);
				partF.add(jtxconcession);
				
				final JLabel jlbBizRate = new JLabel("Business Rate Increase: (Number)");
				final JTextField jtxBizRate = new JTextField(String.valueOf(Globals.ActiveBusinessFlight.Rate),20);
				
				partG.add(jlbBizRate);
				partG.add(jtxBizRate);
				
				final JLabel jlbgroupDiscount = new JLabel("Group Discount Rate: (Number)");
				final JTextField jtxgroupDiscount = new JTextField(String.valueOf(Globals.ActiveEconomyFlight.groupDiscount),20);
				
				partH.add(jlbgroupDiscount);
				partH.add(jtxgroupDiscount);
				
				
				JButton jbtU = new JButton("Update");
				JButton jbtA = new JButton("Apply");
				JButton jbtR = new JButton("Return");
				
				
				partZ.add(jbtU);
				partZ.add(jbtA);
				partZ.add(jbtR);
				
				jbtU.addActionListener(new ActionListener(){
					public void actionPerformed(ActionEvent e) {
						System.out.println("Flag Action Press - Sumbit");
						// Checks to see if the data is legal.
						boolean DataSafe = true;
						Date CurrentDate = null;
						
						
						// Collect Strings.
						String StringDate = jtxDate.getText();	
						String Origin = jtxOrigin.getText();
						String Destination = jtxDestination.getText();		
						String ETD = jtxETD.getText();
						String ETA = jtxETA.getText();
						String Price = jtxPrice.getText();
						String Concession = jtxconcession.getText();
						String BizRate = jtxBizRate.getText();
						String GoupDiscount = jtxgroupDiscount.getText();
						
						
						// Date Check.
						System.out.println(StringDate);
						CurrentDate = ATAControl.DateInputCheck(StringDate);
						
						if (CurrentDate == null){
							System.out.println("Date error");
							DataSafe = false;
						}
						
						if (Origin.equals("")){
							System.out.println("Name Error");
							DataSafe = false;
						}
						if (Destination.equals("")){
							System.out.println("Name Error");
							DataSafe = false;
						}
							
						
						try{
							Integer.parseInt(ETD);
							Integer.parseInt(ETA);
							Double.parseDouble(Price);
							Double.parseDouble(Concession);
							Double.parseDouble(BizRate);
							Double.parseDouble(GoupDiscount);
						}
						catch (NumberFormatException badstring){
							System.out.println("Number error");
							DataSafe = false;
						}
						
						int InputETD = Integer.parseInt(ETD);
						int InputETA = Integer.parseInt(ETA);
						double inputPrice = Double.parseDouble(Price);
						double inputConcession = Double.parseDouble(Concession);
						double inputBizRate = Double.parseDouble(BizRate);
						double inputGoupDiscount = Double.parseDouble(GoupDiscount);
						
			
						//String Name = jlbData.getText();
						//String Adult = jtxAdult.getText();
						//String Child = jtxChild.getText();					
			
						if (DataSafe == true){
							//System.out.println(CurrentDate);
			
							TravelGUI.ATAControl.EditFlightObject(
									Globals.ActiveFlightObjID, 
									CurrentDate, 
									Origin, 
									Destination, 
									InputETD, 
									InputETA, 
									inputPrice, 
									inputConcession, 
									inputBizRate, 
									inputGoupDiscount);
							
							
							//jlbData.setText("");
							//jtxAdult.setText("0");
							//jtxChild.setText("0");
							
							CardLayout cl = (CardLayout)(Globals.cards.getLayout());
							cl.show(Globals.cards, Globals.LISTPANEL);
						}
						System.out.println(DataSafe);
						
			
						
					}
				});
				
				jbtA.addActionListener(new ActionListener(){
					public void actionPerformed(ActionEvent e) {
						System.out.println("Flag Action Press - Sumbit");
						// Checks to see if the data is legal.
						boolean DataSafe = true;
						Date CurrentDate = null;
						
						
						// Collect Strings.
						String StringDate = jtxDate.getText();	
						String Origin = jtxOrigin.getText();
						String Destination = jtxDestination.getText();		
						String ETD = jtxETD.getText();
						String ETA = jtxETA.getText();
						String Price = jtxPrice.getText();
						String Concession = jtxconcession.getText();
						String BizRate = jtxBizRate.getText();
						String GoupDiscount = jtxgroupDiscount.getText();
						
						
						// Date Check.
						System.out.println(StringDate);
						CurrentDate = ATAControl.DateInputCheck(StringDate);
						
						if (CurrentDate == null){
							System.out.println("Date error");
							DataSafe = false;
						}
						
						if (Origin.equals("")){
							System.out.println("Name Error");
							DataSafe = false;
						}
						if (Destination.equals("")){
							System.out.println("Name Error");
							DataSafe = false;
						}
							
						
						try{
							Integer.parseInt(ETD);
							Integer.parseInt(ETA);
							Double.parseDouble(Price);
							Double.parseDouble(Concession);
							Double.parseDouble(BizRate);
							Double.parseDouble(GoupDiscount);
						}
						catch (NumberFormatException badstring){
							System.out.println("Number error");
							DataSafe = false;
						}
						
						int InputETD = Integer.parseInt(ETD);
						int InputETA = Integer.parseInt(ETA);
						double inputPrice = Double.parseDouble(Price);
						double inputConcession = Double.parseDouble(Concession);
						double inputBizRate = Double.parseDouble(BizRate);
						double inputGoupDiscount = Double.parseDouble(GoupDiscount);
						
			
						//String Name = jlbData.getText();
						//String Adult = jtxAdult.getText();
						//String Child = jtxChild.getText();					
			
						if (DataSafe == true){
							System.out.println(CurrentDate);
			
							TravelGUI.ATAControl.EditFlightObject(
									Globals.ActiveFlightObjID, 
									CurrentDate, 
									Origin, 
									Destination, 
									InputETD, 
									InputETA, 
									inputPrice, 
									inputConcession, 
									inputBizRate, 
									inputGoupDiscount);
							
							
							//jlbData.setText("");
							//jtxAdult.setText("0");
							//jtxChild.setText("0");
							
							
						}
						System.out.println(DataSafe);
						
			
						
					}
				});
				
				jbtR.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent e) {
						System.out.println("Flag Action Press - Return");
						
						CardLayout cl = (CardLayout)(Globals.cards.getLayout());
						cl.show(Globals.cards, Globals.LISTPANEL);
					}
				});
				
				card.add(part0);
				card.add(partA1);
				card.add(partA2);
				card.add(partB);
				card.add(partC);
				card.add(partD);
				card.add(partE);
				card.add(partF1);
				card.add(partF);
				card.add(partG);
				card.add(partH);
				card.add(partZ);
				
				return card;
				
			}