Here you can find the source of tryToBuildAFocusGroup(AbstractButton... buttons)
public static void tryToBuildAFocusGroup(AbstractButton... buttons)
//package com.java2s; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import javax.swing.AbstractButton; public class Main { /**//from ww w .ja v a 2s. c om * Holds the public static method * {@code com.jgoodies.jsdl.common.focus.FocusTraversalUtils#group}. */ private static Method groupMethod = null; /** * Tries to group the given buttons using the FocusTraversalUtils class * - if available. Does nothing, if this class is not in the class path. */ public static void tryToBuildAFocusGroup(AbstractButton... buttons) { if (groupMethod == null) { return; } try { groupMethod.invoke(null, (Object) buttons); } catch (IllegalAccessException | InvocationTargetException e) { // Do nothing } } }