} else {
releaseFindBar();
}
Window topLevel = SwingUtilities.getWindowAncestor(target);
if (topLevel instanceof JXFrame) {
JXRootPane rootPane = ((JXFrame) topLevel).getRootPaneExt();
JToolBar toolBar = rootPane.getToolBar();
if (toolBar == null) {
toolBar = new JToolBar();
rootPane.setToolBar(toolBar);
}
toolBar.add(findBar, 0);
rootPane.revalidate();
KeyboardFocusManager.getCurrentKeyboardFocusManager().focusNextComponent(findBar);
}
lastFindBarTarget = target;
findBar.setLocale(target.getLocale());