🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #3426

TextArea caret positioning bug

#3426
From: Dennis McNulty
Date: Sun, 11 Jan 1998 00:00
10 lines
948 bytes
In JBuilder Std 1.0, there's a bug in the java.awt.TextArea logic.  If you
do a setCaretPosition(pos) to force the cursor to a place in the text, then
call getCaretPosition (), the latter returns different position number.  It
turns out that the SET counts newline characters, but the GET doesn't. 
When I recompiled my code using Sun's JDK 1.1.4, I found that GET was
properly counting newlines.  Is there a way to get the IDE to compile using
Sun's 1.1.4 rather than Borland's bundled 1.1.2?
 
                                        -  Dennis McNulty
Technical Details
Message-ID: <01bd1e58$b6f66bc0$ddf8aec7@dem>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,f7e28bf7f220ca41,start
X-Google-Attributes: gid1089d0,public
From: "Dennis McNulty" <dmcnulty@compuserve.com>
Subject: TextArea caret positioning bug
Date: 1998/01/11
Message-ID: <01bd1e58$b6f66bc0$ddf8aec7@dem>
X-Deja-AN: 314868276
Organization: PC Bugs Begone!
Newsgroups: borland.public.jbuilder.java.api