Feel free to post any FAQs, I'll try to consolidate them nicely into this thread.
Q: Cursor only paints half in Eforen theme
Answer wrote:
Q: Can you display an image not in the theme fileAnswer wrote:
Q: I get a 'null URL' exception when trying to load theme.Answer wrote:
The theme directory needs to be in classpath.
MatthiasM wrote:
I also found out why ClassLoader.getResource() does not work for you: your "res" folder is not part of the classpath. When you add it then you can also access it via the classpath

More info here:
http://slick.javaunlimited.net/viewtopic.php?t=2450 MoreMatthiasM wrote:
a) File.toURL() is deprecated - any IDE should show this
b) if you put your resources on the classpath you should use MyClass.class.getResource("<relative-path>"); as done in the examples.
c) Using File to access resources will not work in applets or webstart.
Q: I get an error saying child or widget is already in treeAnswer wrote:
This happens if you initialize/setup TWL more than once. If you call the TWL setup code in a Slick gamestate init(), it can and will be called more than once. Something like this will work:
Code:
if (root != null) { return; } // root has already been initialized
else { // else, setup TWL here. }
Q:What is the minimum OpenGL requirements for TWL to work?Answer wrote:
MatthiasM wrote:
The provided renderer requires OpenGL 1.2