🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.java.gui
4 messages
4 total messages Started by Luis Miguel Crespo Pérez Fri, 12 Feb 1999 00:00
Blank spaces located at both edges in a TextField.
#123
Author: Luis Miguel Crespo Pérez
Date: Fri, 12 Feb 1999 00:00
8 lines
1329 bytes
    How Can I eliminate the blank spaces located at both edges in a
TextField that
don't allow to set the cursor ath the very beginnig and very end of the
field. This
stupid thing causes a horrible effect in one length fields.

    Please, if you have any clue, forward it to.
    lmc@sdsoftware.es
Blank spaces located at both edges in a TextField.
#124
Author: Supernews User
Date: Sat, 13 Feb 1999 00:00
9 lines
1153 bytes
You can use trim() to remove blank spaces at the begining and end of a
String.

-ernie



   -**** Posted from Supernews, Discussions Start Here(tm) ****-
http://www.supernews.com/ - Host to the the World's Discussions & Usenet
Re: Blank spaces located at both edges in a TextField.
#120
Author: sa
Date: Sat, 27 Feb 1999 00:00
14 lines
1259 bytes
On Fri, 12 Feb 1999 14:10:55 +0100, Luis Miguel Crespo
=?iso-8859-1?Q?P=E9rez?= <lmc@sdsoftware.es> wrote:

>    How Can I eliminate the blank spaces located at both edges in a
>TextField that don't allow to set the cursor ath the very beginnig and very end of the
>field. This stupid thing causes a horrible effect in one length fields.
>
>    Please, if you have any clue, forward it to.
>    lmc@sdsoftware.es
>

Will setText("") help?  

Java Certification http://www.code316.com
Re: Blank spaces located at both edges in a TextField.
#121
Author: R
Date: Sat, 27 Feb 1999 00:00
11 lines
1307 bytes
On Sat, 27 Feb 1999 05:51:08 GMT, sa <thraw_away@bykesite.com> wrote:
>On Fri, 12 Feb 1999 14:10:55 +0100, Luis Miguel Crespo
>>    How Can I eliminate the blank spaces located at both edges in a
>> TextField that don't allow to set the cursor ath the very beginnig
>> and very end of the field.

If you have a handle to a TextField called "t" then you could do:

  t.setText(t.getText().trim());

R.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads