private JPanel createControlPanel(){
  JPanel controlPanel=new JPanel();
  controlPanel.setLayout(new BorderLayout());
  Container zoomPanel=new Container();
  zoomPanel.setLayout(new BorderLayout());
  JButton plus=new JButton("+");
  plus.addMouseListener(new CustomMouseListener(new ZoomAction(ZoomDirection.IN)));
  zoomPanel.add(plus,BorderLayout.NORTH);
  JButton minus=new JButton("-");
  minus.addMouseListener(new CustomMouseListener(new ZoomAction(ZoomDirection.OUT)));
  zoomPanel.add(minus,BorderLayout.SOUTH);
  controlPanel.add(zoomPanel,BorderLayout.WEST);
  controlPanel.add(new JSeparator(SwingConstants.VERTICAL),BorderLayout.CENTER);
  Container translationPanel=new Container();
  translationPanel.setLayout(new BorderLayout());
  JButton up=new BasicArrowButton(SwingConstants.NORTH);
  up.addMouseListener(new CustomMouseListener(new TranslationAction(TranslationDirection.NORTH)));
  translationPanel.add(up,BorderLayout.NORTH);
  JButton west=new BasicArrowButton(SwingConstants.WEST);
  west.addMouseListener(new CustomMouseListener(new TranslationAction(TranslationDirection.WEST)));
  translationPanel.add(west,BorderLayout.WEST);
  translationPanel.add(new JLabel("        "),BorderLayout.CENTER);
  JButton east=new BasicArrowButton(SwingConstants.EAST);
  east.addMouseListener(new CustomMouseListener(new TranslationAction(TranslationDirection.EAST)));
  translationPanel.add(east,BorderLayout.EAST);
  JButton south=new BasicArrowButton(SwingConstants.SOUTH);
  south.addMouseListener(new CustomMouseListener(new TranslationAction(TranslationDirection.SOUTH)));
  translationPanel.add(south,BorderLayout.SOUTH);
  controlPanel.add(translationPanel,BorderLayout.EAST);
  controlPanel.setBorder(new CompoundBorder(BorderFactory.createTitledBorder("Controls"),BorderFactory.createEmptyBorder(5,5,10,20)));
  return controlPanel;
}

private JPanel createControlPanel ( ) { JPanel controlPanel = new JPanel ( ) ; controlPanel . setLayout ( new BorderLayout ( ) ) ; Container zoomPanel = new Container ( ) ; zoomPanel . setLayout ( new BorderLayout ( ) ) ; JButton plus = new JButton ( "+" ) ; plus . addMouseListener ( new CustomMouseListener ( new ZoomAction ( ZoomDirection . IN ) ) ) ; zoomPanel . add ( plus , BorderLayout . NORTH ) ; JButton minus = new JButton ( "-" ) ; minus . addMouseListener ( new CustomMouseListener ( new ZoomAction ( ZoomDirection . OUT ) ) ) ; zoomPanel . add ( minus , BorderLayout . SOUTH ) ; controlPanel . add ( zoomPanel , BorderLayout . WEST ) ; controlPanel . add ( new JSeparator ( SwingConstants . VERTICAL ) , BorderLayout . CENTER ) ; Container translationPanel = new Container ( ) ; translationPanel . setLayout ( new BorderLayout ( ) ) ; JButton up = new BasicArrowButton ( SwingConstants . NORTH ) ; up . addMouseListener ( new CustomMouseListener ( new TranslationAction ( TranslationDirection . NORTH ) ) ) ; translationPanel . add ( up , BorderLayout . NORTH ) ; JButton west = new BasicArrowButton ( SwingConstants . WEST ) ; west . addMouseListener ( new CustomMouseListener ( new TranslationAction ( TranslationDirection . WEST ) ) ) ; translationPanel . add ( west , BorderLayout . WEST ) ; translationPanel . add ( new JLabel ( "        " ) , BorderLayout . CENTER ) ; JButton east = new BasicArrowButton ( SwingConstants . EAST ) ; east . addMouseListener ( new CustomMouseListener ( new TranslationAction ( TranslationDirection . EAST ) ) ) ; translationPanel . add ( east , BorderLayout . EAST ) ; JButton south = new BasicArrowButton ( SwingConstants . SOUTH ) ; south . addMouseListener ( new CustomMouseListener ( new TranslationAction ( TranslationDirection . SOUTH ) ) ) ; translationPanel . add ( south , BorderLayout . SOUTH ) ; controlPanel . add ( translationPanel , BorderLayout . EAST ) ; controlPanel . setBorder ( new CompoundBorder ( BorderFactory . createTitledBorder ( "Controls" ) , BorderFactory . createEmptyBorder ( 5 , 5 , 10 , 20 ) ) ) ; return controlPanel ; }
creates the small control panel below the selection list
