🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #19510

textAreaControl.setCaretPosition() problem

#19510
From: Mark Macpherson
Date: Mon, 02 Feb 1998 00:00
13 lines
945 bytes
I have a Java app. with only a text area control. I instantiate it with
some text (from the Inspector) and also set the Caret Position (also
from the Inspector) to a value other than zero.

Compiles no problem but I get a runtime error
"java.awt.IllegalComponentStateException: Cannot set caret position
until after the peer has been created".

What's going on here and how can I set the caret position to other than
zero??

Mark Macpherson
Technical Details
Message-ID: <34D5B462.C4BC0784@hotkey.net.au>
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: f74b3,51faf7998bb5f24d,start
X-Google-Attributes: gidf74b3,public
From: Mark Macpherson <mkm@hotkey.net.au>
Subject: textAreaControl.setCaretPosition() problem
Date: 1998/02/02
Message-ID: <34D5B462.C4BC0784@hotkey.net.au>
X-Deja-AN: 321332912
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii
Organization: Useful Technology
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language