svoid addAndValidate(final Container c, final Component x) { if (c != null && x != null) swing { c.add(x); c.revalidate(); } }