Пример #1
0
 private TicketJPanel getRightPanel() {
   if (rightPanel == null) {
     rightPanel = new TicketJPanel();
     rightPanel.setBackground(Color.RED);
   }
   return rightPanel;
 }
Пример #2
0
 private TicketJPanel getLeftPanel() {
   if (leftPanel == null) {
     leftPanel = new TicketJPanel();
     leftPanel.setBackground(Color.BLUE);
   }
   return leftPanel;
 }