});
w.add(new JScrollPane(jList), BorderLayout.CENTER);
w.setPreferredSize(new Dimension(200, 200));
Rectangle position = editorTextArea.modelToView(caretPosition);
w.show(editorTextArea, position.x + position.width, position.y + position.height);
jList.requestFocus();
} catch (BadLocationException e) {
e.printStackTrace();
}
}