Share

Java Application Framework/GUI Editor

The forum address has changed, you have been automatically redirected. Please update any bookmarks to use the new URL.

Subscribe

NullpointerException

You are viewing a single message from this topic. View all messages.

  1. 2005-04-09 16:03:40 UTC
    Atris version 1.0.8
    I have the following error trying tutorial:

    java.lang.NullPointerException
    java.lang.NullPointerException
    at java.awt.Container.addImpl(Unknown Source)
    at java.awt.Container.add(Unknown Source)
    at Atris.CommonUI.AtrisMDIFrame.MyConstructor(AtrisMDIFrame.java:853)
    at Atris.CommonUI.AtrisMDIFrame.<init>(AtrisMDIFrame.java:118)
    at Atris.CommonUI.AtrisApplication.Start(AtrisApplication.java:1657)
    at MyMain.main(MyMain.java:10)


    First file MyApplication.java:

    import Atris.Common.*;
    import Atris.CommonUI.*;
    public class MyApplication extends AtrisApplication
    {
    public void OnInitialize()
    {
    this.setRoot("\\AtrisDemo");
    this.setApplicationName("MyApplication");
    this.setLogin(false);
    }
    }

    Second file MyMain.java:

    import Atris.Common.*;
    import Atris.CommonUI.*;
    public class MyMain
    {
    public static void main(String[] args)
    {
    try
    {
    MyApplication theApp = new MyApplication();
    theApp.Start();
    }
    catch(Exception e)
    {
    System.out.println(e.toString());
    e.printStackTrace();
    }
    }
    }


    Sun jdk1.5.0, Win98SE.
    AtrisXMLEditor works nice.
< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.