String (@NonNls final String componentClassName) { final int lastDotIndex = componentClassName.lastIndexOf('.'); String shortClassName = componentClassName.substring(lastDotIndex + 1); // Here is euristic. Chop first 'J' letter for standard Swing classes. // Without 'J' bindings look better. if ( shortClassName.length() > 1 && Character.isUpperCase(shortClassName.charAt(1)) && componentClassName.startsWith("javax.swing.") && StringUtil.startsWithChar(shortClassName, 'J') ) { shortClassName = shortClassName.substring(1); } shortClassName = StringUtil.decapitalize(shortClassName); return shortClassName; }