cdrchops / gbui

Automatically exported from code.google.com/p/gbui
GNU Lesser General Public License v2.1
0 stars 0 forks source link

BuiSystem default file (/rsrc/styles.bss) doesn't exist. #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Pull sources from SVN.
2. Put BuiSystem.init() in your code.
3. Run your app and watch it trace out.

What is the expected output? What do you see instead?
expected a BWindow on my jME screen. see stack trace.  After fixing 
BuiSystem.java (attached) no stack trace - but BWindow doesn't appear 
(another issue).

What version of the product are you using? On what operating system?
Pulled latest from SVN May 25.

Please provide any additional information below.

Changed BuiSystem.java line 50 to:

    public static void init() {
        init(null, null, 
            BStyleSheetUtil.getStyleSheet("/rsrc/styles.properties")
        );
    }

and line 136 to:

          style = BStyleSheetUtil.getStyleSheet("/rsrc/styles.properties");

Effect was no more stack trace - but no BWindow showed up.

Original issue reported on code.google.com by spacebat...@gmail.com on 25 May 2008 at 8:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
the directory containing /rsrc directory has to be in the classpath for java to 
be
able to find the stylesheet.

Original comment by schizosfera@gmail.com on 18 Sep 2008 at 6:27

GoogleCodeExporter commented 9 years ago
added a dist-rsrc task to the ant build file. adding the resulting rsrc.jar to 
the
classpath resolves the problem

Original comment by schizosfera@gmail.com on 27 Sep 2009 at 8:46