svoid addMouseListener(Container c, MouseListener l) { if (c != null && l != null) swing { c.addMouseListener(l); } } // binary compatibility svoid addMouseListener(JComponent c, MouseListener l) { addMouseListener((Container) c, l); }