JTextField () { ExtendableTextField cbEditor = new ExtendableTextField(); cbEditor.addExtension(new ExtendableTextComponent.Extension() { private final Icon icon = new AnimatedIcon.FS(); @Override public Icon getIcon(boolean hovered) { return !hovered ? icon : AllIcons.Process.FS.Step_passive; } @Override public String getTooltip() { return "Refresh"; } }); cbEditor.setEditable(false); cbEditor.setBorder(null); return cbEditor; }