void (ChooseByNamePopupComponent.Callback callback, ModalityState modalityState, boolean allowMultipleSelection) { super.initUI(callback, modalityState, allowMultipleSelection); //myTextFieldPanel.setBorder(new EmptyBorder(0,0,0,0)); myTextFieldPanel.setBorder(null); myPanel.setLayout(new GridBagLayout()); myPanel.add(myTextFieldPanel, new GridBagConstraints( 0, 0, 1, 1, 1, 0, GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, JBInsets.emptyInsets(), 0, 0)); myPanel.add(myListScrollPane, new GridBagConstraints( 0, 1, 1, 1, 1, 1, GridBagConstraints.WEST, GridBagConstraints.BOTH, JBInsets.emptyInsets(), 0, 0)); }