static void setVisible(final Component c, final bool visible) { if (c != null) swing { c.setVisible(visible); } }