Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Printing - Null Pointer exception - reg.


  • From: uddipan@xxxxxxxxxxxxxxxx (Uddipan Bagchi)
  • Subject: Printing - Null Pointer exception - reg.
  • Date: Mon, 16 Nov 1998 10:25:45 +0530

> class Riter extends JFrame{
> JPrintTextPane edit;
> public Riter(){}
>
> protected void frameInit(){
> super.frameInit();
>
> createMenuBar();
>
> content.add(new JScrollPane(edit), BorderLayout.CENTER);
>
> } // end of frameInit()

Umm, .... maybe you haven't given this portion of the code here.
Just wondering,where's
edit = new JPrintTextPane(); // or it's equivalent
The stacktrace appears to suggest that it is encountering this nullpointer
exception because your editor object is null.

- Uddipan.




---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx