private JPanel custtab() {
		JPanel cust = new JPanel();
		cust.setLayout(null);
		JButton newcust, edcust, delcust, viewcust;
		newcust = new JButton("New Customer");
		edcust = new JButton("Edit Customer");
		delcust = new JButton("Delete Customer");
		viewcust = new JButton("View all Customers");

		newcust.setBounds(100, 45, 200, 30);
		edcust.setBounds(100, 85, 200, 30);
		delcust.setBounds(100, 125, 200, 30);
		viewcust.setBounds(100, 165, 200, 30);

		newcust.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {

				setVisible(false);
				new NewCustomer();
			}
		});
		edcust.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {

				setVisible(false);

				String accno = getaccno();
				if (accno == null || accno.trim().length() == 0)
					setVisible(true);
				else {
					ResultSet rs = query("select * from customer where accno = "
							+ accno);
					try {
						if (!rs.next()) {
							JOptionPane.showMessageDialog(null,
									"Account does not exist with this No.", "",
									JOptionPane.ERROR_MESSAGE);
							setVisible(true);
						} else
							new EditCustomer(Integer.parseInt(accno), 0);

					} catch (HeadlessException | SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}

				}

			}
		});
		delcust.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {

				setVisible(false);

				String accno = getaccno();
				if (accno == null || accno.trim().length() == 0)
					setVisible(true);
				else {

					try {
						ResultSet rs = query("select * from customer where accno = "
								+ accno);
						if (!rs.next()) {
							JOptionPane.showMessageDialog(null,
									"Account does not exist with this No.", "",
									JOptionPane.ERROR_MESSAGE);
						} else {
							query("delete from customer where accno = " + accno);

							JOptionPane.showMessageDialog(null, "Account : "
									+ accno + " deleted");

						}
						setVisible(true);

					} catch (HeadlessException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					} catch (SQLException e) {
						// TODO Auto-generated catch block
						e.printStackTrace();
					}
				}

			}
		});

		viewcust.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {

				setVisible(false);
				new ViewFrame().viewFrame(0, 0, 1,username);

			}
		});

		cust.add(newcust);
		cust.add(edcust);
		cust.add(delcust);
		cust.add(viewcust);
		return cust;

	}