Tool Window Icons

Why when I set the icon on my tool window does it not appear?

toolWindow = ToolWindowManager.getInstance(project).
registerToolWindow(TOOL_WINDOW_ID,
jiraMonitor.getTabs(), ToolWindowAnchor.BOTTOM);

toolWindow.setIcon(IconLoader.getIcon("jira.png"));

The path to the image is correct as its used elsewhere. I assume its
because I'm setting the icon -after- registering the tool window, but I
don't see a way to set the icon when registering the window?

The getTabs() method is returning a JTabbedPane to the toolwindow if its
of any matter...

amrk

2 comments
Comment actions Permalink

Hello Mark,

MD> toolWindow.setIcon(IconLoader.getIcon("jira.png"));
MD>
MD> The path to the image is correct as its used elsewhere. I assume
MD> its because I'm setting the icon -after- registering the tool
MD> window, but I don't see a way to set the icon when registering the
MD> window?

Check that IconLoader.getIcon("jira.png") return valid icon image.

Thanks!
--
Alexey Efimov, Java Developer
Tops BI
http://www.topsbi.ru


0
Comment actions Permalink

On Tue, 22 Feb 2005 at 07:45 GMT, Alexey Efimov wrote:

Check that IconLoader.getIcon("jira.png") return valid icon image.


Gah - missed the / :)

0

Please sign in to leave a comment.