🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #975

Saving a reference to a JTextPane

#975
From: Wolf
Date: Tue, 15 Jun 2004 08:58
15 lines
1204 bytes
Hi,

I want to make several classes write messages to a JTextPane which has been created by one of them. I tried to save a reference to the pane in a class which controlls the user interface; later on I want to use this reference to write to the TextPane:

JTextPane TextPane = new JTextPane();
uic.setTextPane(TextPane);

When setting TextPane to the uic slot I get a java.lang.NullPointerException

What am I doing wrong?

Regards

Wolf
Technical Details
Message-ID: <40ceba2d$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,2de37b4a0a5af4c7,start
X-Google-Attributes: gid111d45,public
From: "Wolf" <respro-aguas@ej-gv.es>
Sender: "Wolf" <respro-aguas@ej-gv.es>
Reply-To: "Wolf" <respro-aguas@ej-gv.es>
Subject: Saving a reference to a JTextPane
Newsgroups: borland.public.jbuilder.java.swing
X-User-Info: 212.55.29.254     
NNTP-Posting-Host: 207.105.83.66
Message-ID: <40ceba2d$1@newsgroups.borland.com>
Date: 15 Jun 2004 01:58:21 -0700
X-Trace: newsgroups.borland.com 1087289901 207.105.83.66 (15 Jun 2004 01:58:21 -0700)
Lines: 15
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail