Article View: borland.public.jbuilder.java.swing
Article #8437SetCharacterAttribute problem(because of JDK)
From: Pascal AUDANT
Date: Fri, 18 Aug 2000 00:00
Date: Fri, 18 Aug 2000 00:00
18 lines
1178 bytes
1178 bytes
Greetings everybody,
I am using SetCharacterAttribute to highlight text when the user click
on it...
This is the header :
public void setCharacterAttributes(int offset, int length,
AttributeSet s, boolean replace)
However my code runs fine under JDK1.3 ... But under JDK1.2 I get a
nullPointerException...
I have used the debugger and I have realised that under SetChar... is
called multiple times.
Under jdk1.3 there's a call to AWTMultiCaster.java (MousePressedEvent),
while under jdk1.2 I get the NullPointerException Call ...
Can someone explain to me what's going on and how I can make it work
under 1.2 ?
Thanx,
Pascal
Technical Details
Message-ID:
<399D6F42.88723DF3@orbitek.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,c1913d0e3e505744,start X-Google-Attributes: gid111d45,public From: Pascal AUDANT <paco@orbitek.com> Subject: SetCharacterAttribute problem(because of JDK) Date: 2000/08/18 Message-ID: <399D6F42.88723DF3@orbitek.com> X-Deja-AN: 659801080 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Trace: 18 Aug 2000 10:07:33 -0800, 24.200.186.63 MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing