How to show a list in toolWindow?

I have to add a list to my toolWindow plugin project. But i don't know how to do this.


How can i do this?

0
2 comments
Avatar
Permanently deleted user

Please try this pattern:

JList someList = new JList(aModel);

ContentManager contentManager = toolWindow.getContentManager();

Content content = contentManager.getFactory().createContent(new JScrollPane(someList), null, false);

contentManager.addContent(content);

0
Avatar
Permanently deleted user

So much thanks Vassiliy!

0

Please sign in to leave a comment.