public static void hasFocus(Component c, boolean hasFocus) { if (c instanceof TLabel) { ((TLabel) c).hasFocus(hasFocus); } }