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
- Prev by Date: Blocking swing dialogs.
- Next by Date: maintain an ASP session from a Java app
- Previous by thread: Blocking swing dialogs.
- Next by thread: maintain an ASP session from a Java app
- Index(es):