JTextField () { JBTextField field = new ExtendableTextField().addBrowseExtension(getBrowseRunnable(), null); field.setBorder(null); field.addFocusListener(new FocusListener() { @Override public void focusGained(FocusEvent e) { update(e); } @Override public void focusLost(FocusEvent e) { update(e); } private static void update(FocusEvent e) { Component c = e.getComponent().getParent(); if (c != null) { c.revalidate(); c.repaint(); } } }); field.setTextToTriggerEmptyTextStatus(ExecutionBundle.message("default.jre.name")); return field; }