this.add(today);
this.addMouseListener(this);
this.addMouseMotionListener(this);
time=new Timer(300, this);
switch(userType){
case 4: SalePane sp=new SalePane(db, cards, cl, bg, this.frame, 4) ;
UserPane up=new UserPane(db, cards, cl, bg, this.frame);
cards.add(sp, "sales");
cards.add(up, "users");
case 3:InventoryPane in=new InventoryPane(db, cards, cl, bg, this.frame, userType);
ExpensePane ep=new ExpensePane(db, cards, cl, bg, this.frame, userType) ;
cards.add(in, "inventory");
cards.add(ep, "expense");
break;
case 5: SalePane sp1=new SalePane(db, cards, cl, bg, this.frame, 5) ;
cards.add(sp1, "sales");
}
}