AbstractPopup (JComponent component, PopupBridge popupBridge, boolean requestFocus) { WrapperPanel wrapper = new WrapperPanel(component); AbstractPopup popup = (AbstractPopup)JBPopupFactory.getInstance() .createComponentPopupBuilder(wrapper, component) .setResizable(true) .setFocusable(requestFocus) .setRequestFocus(requestFocus) .setModalContext(false) .createPopup(); popupBridge.setPopup(popup); return popup; }