void (Object form) { Field[] fields = form.getClass().getDeclaredFields(); for (Field field : fields) { BindControl annotation = field.getAnnotation(BindControl.class); if (annotation != null) { String name = annotation.value(); if (name.length() == 0) { name = field.getName(); } try { field.setAccessible(true); bindControl((JComponent)field.get(form), name, annotation.instant()); } catch (IllegalAccessException e) { throw new RuntimeException(e); } } } }