🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Swap TAB and Ctrl-TAB for JTextArea

#447
From: Magnus
Date: Tue, 24 May 2005 13:19
33 lines
2435 bytes
> 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 noticed.

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

Now, why is it that a text entry that can work with more than one row 
(i.e. text area) insert a TAB but not a text entry for one row (even 
though it can be very long)?  I don't know what criteria was behind the 
TAB decision but I would probably stick with consistency (but that is 
just me).

> 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.

True and I did.

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

I have found that to but it is not common.

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

No.

All browsers I use (explorer, netscape and firefox) also use tab to 
traverse.
Technical Details
Message-ID: <429329f6$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsread.com!news-xfer.newsread.com!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> <xn0e2kwjfg0utas003@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
Date: Tue, 24 May 2005 09:19:58 -0400
From: Magnus <magnus_bjorkman@iwon.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en, sv
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: Swap TAB and Ctrl-TAB for JTextArea
References: <4288af18@newsgroups.borland.com> <4288beb7@newsgroups.borland.com> <4288f55a$1@newsgroups.borland.com> <xn0e2eokm9yv9kb000@newsgroups.borland.com> <428df7f8@newsgroups.borland.com> <xn0e2kwjfg0utas003@newsgroups.borland.com>
In-Reply-To: <xn0e2kwjfg0utas003@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 71.0.99.227
Message-ID: <429329f6$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1116940790 71.0.99.227 (24 May 2005 06:19:50 -0700)
Lines: 33
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!newsread.com!news-xfer.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail