From: Jon F. <jf...@ne...> - 2003-08-05 21:55:20
|
Hello, my web start app is moving along, and now I find that to use a third party look-n-feel, I need to use a line similar to the following in my jython code: javax.swing.UIManager.getLookAndFeelDefaults().put("ClassLoader", getClass().getClassLoader()); Now, this wouldn't be much of an issue, except my main .py module uses the"'if __name__ == '__main__':" trick, and thus I have no 'self' to hang the getClass() call off of. Is there a trick I'm not seeing (in the archives and google) for grabbing the current class in this situation? If I'm SOL and need to rewrite my main module to have a class that inherits from a java application class, well, its a sucky solution, but a workable one - I'd rather know if there's a jytho- ism I'm missing though. ~Jon Franz Neurokode Labs, LLC |