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);
						
			
						
					}