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
2 comments

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

Please sign in to leave a comment.