@Override public void remove(Component comp) { if (comp instanceof KitchenTicketView) { KitchenTicketView view = (KitchenTicketView) comp; existingTickets.remove(view.getTicket()); } super.remove(comp); super.removeAll(); rendererKitchenTickets(); }
private void scrollUp() { currentBlockIndex = previousBlockIndex; super.removeAll(); rendererKitchenTickets(); repaint(); }
private void scrollDown() { currentBlockIndex = nextBlockIndex; super.removeAll(); rendererKitchenTickets(); repaint(); }