public abstractPage(){
		super(new BorderLayout());
		
		
		
		if ( lang.equals("en"))
		{
			//static Button 
			appLang = new JButton("Arabic");
			//welcomePage
			//--------Labels--------
			appNameLabel = new JLabel("Parking Permit Kiosk");
			appInfoLabel = new JLabel("This application issues parking permits for York University's students");
			appVersionLabel = new JLabel("1.0");
			progs = new JLabel("<html>"+"Created by: <br>" + "Aidan Waite <br>"+ "and <br>" + "Ahmad Aseeri");
			
			//--------Buttons-------
			start = new JButton("Start");

			//studentRecord
			//--------Info--------
			studLabel = new JLabel("Studnet Records");
			studInfoLabel = new JLabel("Checkes the stduents datebase wether they are eligible to issue a parking permit or not ");
			
			//--------Labels-------
			studIDLabel = new JLabel("Student number");
			studPinLabel = new JLabel("Student pin");
			studLastLabel = new JLabel("Last name");
			studFirstLabel = new JLabel("First name");
			studStatusLabel = new JLabel("Status");
			//--------TextFields-------
			studID = new JTextField("");
			studPin = new JTextField("");
			studLast = new JTextField("");
			studFirst = new JTextField("");
			studStatus = new JTextField("");
			//--------Buttons---------
			studClear = new JButton("Clear");
			studNext = new JButton("Next");

			//parkingPermit
			//--------Info--------
			parkLabel = new JLabel("Parking Permit");
			parkInfoLabel = new JLabel("Issues a prking permit for the eligible student");
			//--------Labels--------
			parkStudIDLabel = new JLabel("Student number");
			parkStudPinLabel = new JLabel("Student pin");
			parkStudEmailLabel = new JLabel("Email");
			parkCarMakeLabel = new JLabel("Make");
			parkCarModelLabel = new JLabel("Model");
			parkCarPlateLabel = new JLabel("Plate number");
			parkCarInsuranceLabel = new JLabel("Insurance");
			parkMonthLabel = new JLabel("Month");
			parkYearLabel = new JLabel("Year");
			//---------TextFields------
			parkStudID = new JTextField("");
			parkStudPin = new JTextField("");
			parkStudEmail = new JTextField("");
			parkCarMake = new JTextField("");
			parkCarModel = new JTextField("");
			parkCarPlate = new JTextField("");
			parkCarInsurance = new JComboBox();
			parkMonth = new JComboBox();
			parkYear = new JComboBox();
			//---------Buttons---------
			parkStudCalculate = new JButton("Calculate");
			parkStudCancel = new JButton("Cancel");

			//PaymentApproved
			//--------Info--------
			payLabel = new JLabel("Payment comfirmation");
			payNoteLabel = new JLabel("<html>"+"Note: The total cost will be added to the "+"</br>"+"financial student account. The cost for each day is C$3.5");
			//---------Labels--------
			payTotalLabel = new JLabel("Total cost is: ");
			payPeriodLabel = new JLabel("Total period is: ");
			//---------TextFields--------
			payTotal = new JTextField("");
			payPeriod = new JTextField("");
			//---------Buttons---------
			payConfirm = new JButton("Confirm");
			payCancel = new JButton("Cancel");

			//ParkingCard
			//--------Info--------
			parkCardLabel = new JLabel("Parking Permit Card");
			parkCardInfoLabel = new JLabel("Student must applay the card inside the card");
			//---------Labels--------
			parkCardIDLabel = new JLabel("Parking permit ID:");
			parkCardStudIDLabel = new JLabel("Student number:");
			parkCardStudNameLabel = new JLabel("Studnet name:");
			parkCardExpiredDateLabel = new JLabel("Expired date:");
			parkCardBarcodeLabel = new JLabel("Barcode:");
			//---------TextFields--------
			parkCardID = new JLabel("### ## ###");
			parkCardStudID = new JLabel("### ### ###");
			parkCardStudName = new JLabel("____ ___ ______");
			parkCardExpiredDate = new JLabel("May, 2014");
			parkCardBarcode = new JLabel("");
			//----------Buttons---------
			parkCardNew = new JButton("New");
			parkCardClose = new JButton("Close");
			parkCardHist = new JButton("History");
		}
		else if (lang.equals("ar"))
		{
			//static Button 
			appLang = new JButton("English");
			//welcomePage
			//--------Labels--------
			appNameLabel = new JLabel("نطام اصدار تصريح المواقف");
			appInfoLabel = new JLabel("برنامح تابع لجامغة يورك لاصدار تصريح المواقف للطلاب");
			appVersionLabel = new JLabel("١,٠");
			//--------Buttons-------
			start = new JButton("إبدأ");

			//studentRecord
			//--------Info--------
			studLabel = new JLabel("سجلات الطلاب");
			studInfoLabel = new JLabel("للتأكد من قابلية الطالب لاصدار بطاقة تصريح موقف ");
			//--------Labels-------
			studIDLabel = new JLabel("رقم الطالب");
			studPinLabel = new JLabel("الرقم السري");
			studLastLabel = new JLabel("اسم العائلة");
			studFirstLabel = new JLabel("الاسم الاول");
			studStatusLabel = new JLabel("الحالة");
			//--------TextFields-------
			studID = new JTextField("");
			studPin = new JTextField("");
			studLast = new JTextField("");
			studFirst = new JTextField("");
			studStatus = new JTextField("");
			//--------Buttons---------
			studClear = new JButton("مسح البيانات");
			studNext = new JButton("التالي");

			//parkingPermit
			//--------Info--------
			parkLabel = new JLabel("اصدار تصريح الموقف");
			parkInfoLabel = new JLabel("تعبئة بينات تصريح الموقف ");
			//--------Labels--------
			parkStudIDLabel = new JLabel("رقم الطالب");
			parkStudPinLabel = new JLabel("الرقم السري");
			parkStudEmailLabel = new JLabel("البريد الالكتروني");
			parkCarMakeLabel = new JLabel("نوع السيارة");
			parkCarModelLabel = new JLabel("المودبل");
			parkCarPlateLabel = new JLabel("رفم اللوحة");
			parkCarInsuranceLabel = new JLabel("التأمين");
			parkMonthLabel = new JLabel("الشهر");
			parkYearLabel = new JLabel("الستة");
			//---------TextFields------
			parkStudID = new JTextField("");
			parkStudPin = new JTextField("");
			parkStudEmail = new JTextField("");
			parkCarMake = new JTextField("");
			parkCarModel = new JTextField("");
			parkCarPlate = new JTextField("");
			parkCarInsurance = new JComboBox();
			parkMonth = new JComboBox();
			parkYear = new JComboBox();
			//---------Buttons---------
			parkStudCalculate = new JButton("احسب");
			parkStudCancel = new JButton("إلفاء الأمر");

			//PaymentApproved
			//--------Info--------
			payLabel = new JLabel("تأكيد الدفع");
			payInfoLabel = new JLabel("سيتم احتساب ٣.٥ دولار كندي عن كل يوم. وسيتم اضافتها الى السحلات المالية للطالب");
			//---------Labels--------
			payTotalLabel = new JLabel("المجموع");
			payPeriodLabel = new JLabel("المدة");
			//---------TextFields--------
			payTotal = new JTextField("");
			payPeriod = new JTextField("");
			//---------Buttons---------
			payConfirm = new JButton("وافق");
			payCancel = new JButton("إلغاء الأمر");

			//ParkingCard
			//--------Info--------
			parkCardLabel = new JLabel("بطاقة تصريح الموقف");
			parkCardInfoLabel = new JLabel("يجب وضع البطاقة في مكان واضح داخل السيارة");
			//---------Labels--------
			parkCardIDLabel = new JLabel("رقم التصريح");
			parkCardStudIDLabel = new JLabel("رقم الطالب");
			parkCardStudNameLabel = new JLabel("اسم الطالب");
			parkCardExpiredDateLabel = new JLabel("تاريخ الانتهاء");
			parkCardBarcodeLabel = new JLabel("الباركود");
			//---------TextFields--------
			parkCardID = new JLabel("");
			parkCardStudID = new JLabel("");
			parkCardStudName = new JLabel("");
			parkCardExpiredDate = new JLabel("");
			parkCardBarcode = new JLabel("");
			//----------Buttons---------
			parkCardNew = new JButton("اصدار تصريح جديد");
			parkCardClose = new JButton("إغلاق البرنامج");
		}
		
		top = new JPanel();
        center = new JPanel(new BorderLayout());
        bottom = new JPanel(new BorderLayout());
      
	}