- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {StringBuilder s =
new StringBuilder()
new StringBuilder(32)
String str;new StringBuilder(str)
- Smart code suggestions by Codota
}
/** * Retrieves icon that matches the specified state of the slider thumb. * * @return Icon that matches the specified state of the slider thumb. */ private static Icon getIcon(JTree tree, boolean isCollapsed) { ComponentState state = ((tree == null) || tree.isEnabled()) ? ComponentState.ENABLED : ComponentState.DISABLED_UNSELECTED; SubstanceColorScheme fillScheme = SubstanceColorSchemeUtilities .getColorScheme(tree, state); SubstanceColorScheme borderScheme = SubstanceColorSchemeUtilities .getColorScheme(tree, ColorSchemeAssociationKind.BORDER, state); int fontSize = SubstanceSizeUtils.getComponentFontSize(tree); HashMapKey key = SubstanceCoreUtilities.getHashKey(fontSize, fillScheme.getDisplayName(), borderScheme.getDisplayName(), isCollapsed); Icon result = TreeIcon.icons.get(key); if (result != null) return result; result = new ImageIcon(SubstanceImageCreator.getTreeIcon(tree, fillScheme, borderScheme, isCollapsed)); TreeIcon.icons.put(key, result); return result; }
return result; result = new ImageIcon(SubstanceImageCreator.getTreeIcon(tree, fillScheme, borderScheme, isCollapsed)); TreeIcon.icons.put(key, result);