public static JPanel CreateFlightObjectCard (){
				
				System.out.println("CreateFlightObjectCard - flag");
				JPanel card = new JPanel();
				
				JPanel part0 = new JPanel(); // Details about page. 
				JPanel partA = 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));
				partA.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 jlbDate = new JLabel("Date: (Required)");
				final JTextField jtxDate = new JTextField("dd/MM/yyyy",20);
				
				partA.add(jlbDate);
				partA.add(jtxDate);	
				
				final JLabel jlbOrigin = new JLabel("Origin: (Required)");
				final JTextField jtxOrigin = new JTextField(20);
				
				partB.add(jlbOrigin);
				partB.add(jtxOrigin);
				
				final JLabel jlbDestination = new JLabel("Destination: (Required)");
				final JTextField jtxDestination = new JTextField(20);
				
				partC.add(jlbDestination);
				partC.add(jtxDestination);
				
				final JLabel jlbETD = new JLabel("ETD: (Required)");
				final JTextField jtxETD = new JTextField("0000",20);
				
				partD.add(jlbETD);
				partD.add(jtxETD);
				
				final JLabel jlbETA = new JLabel("ETA: (Required)");
				final JTextField jtxETA = new JTextField("0000",20);
				
				partE.add(jlbETA);
				partE.add(jtxETA);
				
				final JLabel jlbPrice = new JLabel("Base Price: (Number)$");
				final JTextField jtxPrice = new JTextField("2500",20);
				
				partF1.add(jlbPrice);
				partF1.add(jtxPrice);
				
				final JLabel jlbconcession = new JLabel("Concession Discount Rate: (Number)");
				final JTextField jtxconcession = new JTextField("0.20",20);
				
				partF.add(jlbconcession);
				partF.add(jtxconcession);
				
				final JLabel jlbBizRate = new JLabel("Business Rate Increase: (Number)");
				final JTextField jtxBizRate = new JTextField("1.25",20);
				
				partG.add(jlbBizRate);
				partG.add(jtxBizRate);
				
				final JLabel jlbgroupDiscount = new JLabel("Group Discount Rate: (Number)");
				final JTextField jtxgroupDiscount = new JTextField("0.10",20);
				
				partH.add(jlbgroupDiscount);
				partH.add(jtxgroupDiscount);
				
				
				JButton jbtS = new JButton("Sumbit");
				JButton jbtC = new JButton("Clear");
				JButton jbtR = new JButton("Return");
				
				
				
				jbtS.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.CreateFlightObject(
									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);
						
			
						
					}
				});
				
				jbtC.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent e) {
						System.out.println("Flag Action Press - Clear");			
						
						jtxDate.setText("dd/MM/yyyy");
						
						jtxOrigin.setText("");
						jtxDestination.setText("");
						
						jtxETD.setText("0000");
						jtxETA.setText("0000");
			
						jtxPrice.setText("2500");
						jtxconcession.setText("0.20");
						
						jtxBizRate.setText("1.25");
						jtxgroupDiscount.setText("0.10");
			
					}
				});
				
				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);
					}
				});
				
				
				partZ.add(jbtS);
				partZ.add(jbtC);
				partZ.add(jbtR);
				
				card.add(part0);
				card.add(partA);
				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;
				
				
				
				
				
			}