private void initComponants() throws IOException {

		// panel = new JPanel();
		menuBar = new JMenuBar();
		adminMenu = new JMenu("Administrator");
		dvdMenuItem = new JMenuItem("Inventory");
		dvdMenuItem.addActionListener(con);
		usersMenuItem = new JMenuItem("User Profiles");
		usersMenuItem.addActionListener(con);
		adminMenu.add(dvdMenuItem);
		adminMenu.add(usersMenuItem);
		menuBar.add(adminMenu);
		reportsMenu = new JMenu("Reports");
		dailyReportMenuItem = new JMenuItem("View Daily Report");
		reportsMenu.add(dailyReportMenuItem);
		menuBar.add(reportsMenu);
		loginMenuItem = new JMenuItem("Login");
		loginMenuItem.addActionListener(con);
		adminMenu.add(loginMenuItem);
		lblCustContact = new Label("Contact:");
		lblCustEmail = new Label("Email:");
		lblCustId = new Label("ID:");
		lblCustName = new Label("Name:");
		lblDvdCategory = new Label("Category:");
		lblDvdCode = new Label("Code:");
		lblDvdLang = new Label("Language:");
		lblDvdName = new Label("Name:");
		lblTransDeposit = new Label("Total Deposit:");
		lblTransDueDate = new Label("Due Date:");
		lblTransFine = new Label("Total Fine:");
		lblTransNoOfDvds = new Label("No Of Dvds:");
		lblTransOverDue = new Label("Over Due:");
		lblTransPay = new Label("Total Payable:");
		lblTransRefund = new Label("Total Refundable:");
		lblTransRent = new Label("Total Rent:");
		txtCustId = new TextField();
		txtCustId.setEditable(false);
		txtCustName = new TextField();
		txtCustName.getDocument().addDocumentListener(con);
		txtContact = new TextField();
		txtEmail = new TextField();
		txtDvdId = new TextField();
		txtDvdId.getDocument().addDocumentListener(con);
		txtDvdName = new TextField();
		txtDvdName.getDocument().addDocumentListener(con);
		cmbDvdCategory = new JComboBox(GuiUtil.getComboBoxData("categories"));
		cmbDvdCategory.insertItemAt("Select Category", 0);
		cmbDvdCategory.setSelectedIndex(0);
		cmbDvdCategory.setFont(font);
		cmbDvdCategory.addItemListener(con);
		cmbDVDLanguage = new JComboBox(GuiUtil.getComboBoxData("languages"));
		cmbDVDLanguage.insertItemAt("Select Language", 0);
		cmbDVDLanguage.setSelectedIndex(0);
		cmbDVDLanguage.setFont(font);
		cmbDVDLanguage.addItemListener(con);
		txtDueDate = new TextField();
		txtLentDate = new TextField();
		txtDeposit = new TextField();
		txtTotalPay = new TextField();
		txtTotalFine = new TextField();
		txtOverDueDays = new TextField();
		txtNoOfDvds = new TextField();
		txtRent = new TextField();
		txtRefundable = new TextField();
		btnEditCustomer = new CustomJButton("Edit", con);
		btnEditCustomer.setToolTipText("Edit customer details");
		btnAddCustomer = new CustomJButton("Add", con);
		btnAddCustomer.setToolTipText("Add new customer to the system");
		btnAddtoTransaction = new CustomJButton("Lend", con);
		btnAddtoTransaction.setEnabled(false);
		btnAddtoTransaction
				.setToolTipText("Add this DVD to the Transaction table");
		btnLend = new CustomJButton("Lend", con);
		btnReturn = new CustomJButton("Return", con);
		btnReturn.setEnabled(false);
		btnClear = new CustomJButton("Clear", con);
		btnRemoveTransaction = new CustomJButton("Remove", con);
		btnRemoveTransaction.setEnabled(false);
		btnExit = new CustomJButton("Exit", con);
		btnOk = new CustomJButton("Ok", con);
		btnOk.setEnabled(false);
		btnCancel = new CustomJButton("Cancel", con);
		btnCancel.setEnabled(false);
		btnCancel.setToolTipText("Cancel transaction");
		customerTableModel = new GenericTableModel<Customer>(new Customer());
		dvdTableModel = new com.gui.generictablemodel.GenericTableModel<DVD>(
				new DVD());
		transactinTblModel = new GenericTableModel<Transaction>(
				new Transaction());
		transactinTblModel.addTableModelListener(con);
		tblCustomer = new Table(customerTableModel);
		tblCustomer.setName(Customer.class.getName());

		tblDvd = new Table(dvdTableModel);
		tblDvd.setName(DVD.class.getName());
		tblTransaction = new Table(transactinTblModel);
		tblTransaction.setName(Transaction.class.getName());

	}