swixml/Two — Issue #1: Setting icons on XTabbedPane doesn't seem to work
Author: gwrtheyrn
Created: 2011-12-07 19:04:10+00:00
State: open

This works:

This does not work:

There are 3 vbox elements contained in the tabbedPane.

When setting the icons on the element directly using `setIcons`, an exception is thrown.

tabbedPane.setIcons("icons/books_medium.png,icons/books_medium.png,icons/books_medium.png");

Exception in thread "main" java.lang.NullPointerException
at org.swixml.converters.ImageIconConverter.conv(ImageIconConverter.java:99)
at org.swixml.XTabbedPane.setIcons(XTabbedPane.java:216)
at application.ui.BookMaster.onInitialize(BookMaster.java:115)
at application.ui.BookMaster.(BookMaster.java:94)
at application.InitApp.main(InitApp.java:16)

When that happens (ImageIconConverter.java line 99) the localizer element is `null`. That might be the problem (or a symptom of the real problem).

I'm using the current SwiXML 2 downloaded from your website.