🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Swap TAB and Ctrl-TAB for JTextArea

#442
From: John McGrath [TeamB]
Date: Mon, 23 May 2005 07:29
33 lines
2239 bytes
On 5/20/2005 at 10:45:31 AM, Magnus wrote:

> When I have a panel with multiple text fields I use TAB to
> go to the next field. However, as soon as I entered text in
> a JTextArea I inserted a TAB instead of going to the next field.

The TAB key is normally a focus traversal key, but the text for a
JTextArea can contain tabs, so JTextArea changes it to insert a tab
character.

> I can't see why the implementation of TAB behavior should differ
> for one component like that. 

The TAB key has been used both for focus traversal and for inserting a TAB
character in text editing applications.  The current behavior seems like a
reasonable compromise.  And if you do not like it, you can change it.

> In the MS world CTRL-TAB insert a tab

It does not do that consistently.  I have found many Microsoft
applications on my system in which that does not work.

Are you aware of any official MS specification that says that the TAB key
should work that way?

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <xn0e2kwjfg0utas003@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4288af18@newsgroups.borland.com> <4288beb7@newsgroups.borland.com> <4288f55a$1@newsgroups.borland.com> <xn0e2eokm9yv9kb000@newsgroups.borland.com> <428df7f8@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,21a389bc4e56d7b7
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "John McGrath  [TeamB]" <ng-b@JPMcGrath.net>
Subject: Re: Swap TAB and Ctrl-TAB for JTextArea
Newsgroups: borland.public.jbuilder.java.swing
References: <4288af18@newsgroups.borland.com> <4288beb7@newsgroups.borland.com> <4288f55a$1@newsgroups.borland.com> <xn0e2eokm9yv9kb000@newsgroups.borland.com> <428df7f8@newsgroups.borland.com>
User-Agent: XanaNews/1.17.4.1
Message-ID: <xn0e2kwjfg0utas003@newsgroups.borland.com>
X-Ref: newsgroups.borland.com ~XNS:0000040A
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-15
NNTP-Posting-Host: 151.197.212.47
Date: 23 May 2005 00:29:45 -0700
X-Trace: newsgroups.borland.com 1116833385 151.197.212.47 (23 May 2005 00:29:45 -0700)
Lines: 33
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news.moat.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail