Complete Error Message
- From: "Hank" <HankySk8on@xxxxxxxx>
- Date: 18 Oct 2006 10:31:57 -0700
Hello Thomas,
thanks for your quick reply!
Bevor talking about the real problem:
There is one error in the line:
....
add("test.xml");
....
Of course, it should be: add(parse("test.xml");
Sorry for that.
Ok, here is the complete error message of the part of interest:
java.lang.NullPointerException
at
file_dialog_test.FileDialogTestMain.<init>(FileDialogTestMain.java:26)
at
file_dialog_test.FileDialogTestMain.main(FileDialogTestMain.java:39)
Exception in thread "main"
Line 26 is the line: while (!(frame instanceof Frame)) { frame =
frame.getParent(); }
Line 39 is: new FrameLauncher("Test", new FileDialogTestMain(),640,
480);
However, the problem, as I see it, is that in line 25 (Container frame
= this;) the container variable is set to "null" for some reason. This
leads to the Exceptions, I guess.
In the examples, "this" revers to a Thinlet variable (Thinlet itselfs
derrives from the container class which is the reason why Container
frame = this should work), in my case, I extend Thinlet, but my "this"
seems no to be accepted...
Thanks for your help,
Hank
.
- Follow-Ups:
- Re: Complete Error Message
- From: Ian Shef
- Re: Complete Error Message
- References:
- Thinlet and AWT File Dialog
- From: Hank
- Re: Thinlet and AWT File Dialog
- From: Thomas Fritsch
- Thinlet and AWT File Dialog
- Prev by Date: Re: Thinlet and AWT File Dialog
- Next by Date: Re: setCellEditor on a single table cell?
- Previous by thread: Re: Thinlet and AWT File Dialog
- Next by thread: Re: Complete Error Message
- Index(es):
Relevant Pages
|