Gang, Tonny,....

I have a problem with launching Envisage in my own application,
outside of the qi4j-tools project, and I can't figure out what is
going on.

The Exception I get is found below. The NPE happens because the JTable
member (apiTable) has not been setup.

I thought that the IDEA would generate only executable code, and not
needing the *.form files. But the code for the APIPane looks very
strange;

    {
// GUI initializer generated by IntelliJ IDEA GUI Designer
// >>> IMPORTANT!! <<<
// DO NOT EDIT OR ADD ANY CODE HERE!
        $$$setupUI$$$();
    }

    /**
     * Method generated by IntelliJ IDEA GUI Designer
     * >>> IMPORTANT!! <<<
     * DO NOT edit this method OR call it in your code!
     *
     * @noinspection ALL
     */
    private void $$$setupUI$$$()
    {
        contentPane = new JPanel();
        contentPane.setLayout( new BorderLayout( 0, 0 ) );
    }

    /**
     * @noinspection ALL
     */
    public JComponent $$$getRootComponent$$$()
    {
        return contentPane;
    }

So where is the either;
1. the creation of the apiTable member, or
2. the call to 'something' that uses the APIPane.form file
??

Running the School example inside IDEA works.
Running the School example from command-line fails.

Anybody got any clue of what is going on here???


Caused by: java.lang.NullPointerException
        at org.qi4j.envisage.detail.APIPane.<init>(APIPane.java:65)
        at 
org.qi4j.envisage.detail.DetailModelPane.createDetailPane(DetailModelPane.java:78)
        at 
org.qi4j.envisage.detail.DetailModelPane.<init>(DetailModelPane.java:52)
        at org.qi4j.envisage.EnvisageFrame.<init>(EnvisageFrame.java:76)
        at org.qi4j.envisage.Envisage.showMainFrame(Envisage.java:57)
        at org.qi4j.envisage.Envisage.access$000(Envisage.java:36)


Cheers
-- 
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java

I  live here; http://tinyurl.com/2qq9er
I  work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to