JComponent () { Splitter splitter = new Splitter(true); myCallerEditor = createEditor(); myCalleeEditor = createEditor(); final JComponent callerComponent = myCallerEditor.getComponent(); callerComponent.setBorder(IdeBorderFactory.createTitledBorder(RefactoringBundle.message("caller.chooser.caller.method"), false)); splitter.setFirstComponent(callerComponent); final JComponent calleeComponent = myCalleeEditor.getComponent(); calleeComponent.setBorder(IdeBorderFactory.createTitledBorder(getCalleeEditorTitle(), false)); splitter.setSecondComponent(calleeComponent); splitter.setBorder(IdeBorderFactory.createRoundedBorder()); return splitter; }