static void addMouseListener(final JComponent c, final MouseListener l) { if (b != null) swing { cb.addMouseListener(l); } }