svoid addKeyListener(final Component c, final KeyListener l) { if (c != null) swing { c.addKeyListener(l); } }