"James G. Stallings II" wrote:
| Exception in thread "main" java.lang.NullPointerException:
| at java.awt.Container.addImpl(Container.java:316)
| at java.awt.Container.add(Container.java:245)
| at Tedit.<init>(Tedit.java:100)
| at Tedit.main(Tedit.java:557)
|
| Are the numbers listed in the dump line numbers in the source code?
| bytecode offsets in the class file? Should I just stick to C and remain
| a dinosaur? ;^)
The numbers are sourcecode-lines, yes. Try the following with jdb:
jou@db:~ jdb -Djava.compiler=NONE Tedit
initializing jdb...
> load Tedit
> stop at Tedit 100
> run
main[1]: where
{.... list of stack ...}
main[1]: list
{sourceode}
main[1]: locals
{prints localVariableTable}
main[1]: print <id> (where id=variablename)
{info on object}
main[1]: dump <id> (where id=variablename)
{dump info on object}
Your problem is probably an instantiation-problem I'll guess. Trying
to add something which isn't allocated yet ?, like:
JPanel panel;
[code]
private void initComponents(){
getContentPane().add(panel);
}
--
Jo Uthus | e-mail: [EMAIL PROTECTED] (private)
Software Engineer | e-mail: [EMAIL PROTECTED] (work)
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]