MenuBar() {
			super();
			this.setOpaque(false);
			this.setBorderPainted(true);
			this.setPreferredSize(new Dimension(mainFrame.getWidth()-logoWidth-80, 50) );
							
			JMenuItem Inventory = new buttonHoverEffect(menuPanel, "Inventory");
			
			JMenuItem Transaction = new buttonHoverEffect(menuPanel, "Transaction");
			
			JMenuItem hr = new buttonHoverEffect(menuPanel, "Human Resource");

			JMenuItem about = new buttonHoverEffect(menuPanel, "About");
													
			JMenuItem logout = new buttonHoverEffect(menuPanel, "LogOut");
			logout.setHorizontalAlignment(SwingConstants.CENTER);
			logout.addMouseListener(new MouseAdapter() {
				@Override
				public void mouseReleased(MouseEvent arg0) {
					logout();
				}
			});
				
			if(admin == 1) this.add(Inventory);
			this.add(Transaction);
			if(admin == 1) this.add(hr);
			this.add(about);
			this.add(Box.createGlue());
			this.add(logout);
			
//			this.setOpaque(true);
		}