JComponent () { JPanel panel = new JPanel(new BorderLayout()); final String title = RefactoringBundle.message("move.members.members.to.be.moved.border.title"); final MemberSelectionPanel selectionPanel = new MemberSelectionPanel(title, myMemberInfos, null); myTable = selectionPanel.getTable(); myMemberInfoModel = new MyMemberInfoModel(); myMemberInfoModel.memberInfoChanged(new MemberInfoChange<>(myMemberInfos)); selectionPanel.getTable().setMemberInfoModel(myMemberInfoModel); selectionPanel.getTable().addMemberInfoChangeListener(myMemberInfoModel); panel.add(selectionPanel, BorderLayout.CENTER); myVisibilityPanel = new JavaVisibilityPanel(true, true); myVisibilityPanel.setVisibility(null); panel.add(myVisibilityPanel, BorderLayout.EAST); return panel; }