JComponent () { final JPanel result = new JPanel(new BorderLayout()); myLogModel = new DefaultListModel<>(); myLog = new JBList<>(myLogModel); myLog.setCellRenderer(new FocusElementRenderer()); myAllocation = new JEditorPane(); final DefaultCaret caret = new DefaultCaret(); myAllocation.setCaret(caret); caret.setUpdatePolicy(DefaultCaret.NEVER_UPDATE); myAllocation.setEditable(false); final Splitter splitter = new Splitter(true); splitter.setFirstComponent(ScrollPaneFactory.createScrollPane(myLog)); splitter.setSecondComponent(ScrollPaneFactory.createScrollPane(myAllocation)); myLog.addListSelectionListener(this); KeyboardFocusManager.getCurrentKeyboardFocusManager().addPropertyChangeListener(this); result.add(splitter, BorderLayout.CENTER); final DefaultActionGroup group = new DefaultActionGroup(); group.add(new ClearAction()); result.add(ActionManager.getInstance().createActionToolbar("FocusDbg", group, true).getComponent(), BorderLayout.NORTH); return result; }