How to embed file editor into tool window?

File editor is more powerful than JTextArea, and how to embed it into the custom panel in tool window?



Attachment(s):
embed_editor.PNG
0

try using EditorFactory.createEditor()
it will get you an com.intellij.openapi.editor.Editor
its JComponent you can embed in your swing form - Editor.getComponent()

0

请先登录再写评论。