🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: getSelectedItem() in listcontrol?

#3516
From: Joe Nuxoll
Date: Thu, 11 Dec 1997 00:00
18 lines
1119 bytes
Michelle wrote:
> However, I now have the problem of trying to view the string I've selected
> outside of the for-loop.  For example, how would I show this string
> selection in a textFieldControl?

// ... insert the previous code ...
textFieldControl1.setText(data[0]); // show the first selected item

 - or -

// ... insert the previous code ...
String selected = "";
for (int i = 0; i < data.length; i++)
  selected += data[i] + ",";
textFieldControl1.setText(selected); // comma separated list of items

- Joe Nuxoll
Technical Details
Message-ID: <3490A47B.521599BA@corp.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <34830CC3.B6DF8C40@lehigh.edu> <348323E1.EF814660@corp.borland.com> <66i1c2$bf3@forums.borland.com> <348CF712.AE5B2704@corp.borland.com> <66n5dk$1gr5@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,d47e4c667b5aa1c4
X-Google-Attributes: gid1089d0,public
From: Joe Nuxoll <jnuxoll@corp.borland.com>
Subject: Re: getSelectedItem() in listcontrol?
Date: 1997/12/11
Message-ID: <3490A47B.521599BA@corp.borland.com>
X-Deja-AN: 297426252
References: <34830CC3.B6DF8C40@lehigh.edu> <348323E1.EF814660@corp.borland.com> <66i1c2$bf3@forums.borland.com> <348CF712.AE5B2704@corp.borland.com> <66n5dk$1gr5@forums.borland.com>
Organization: Borland International, Inc.
Newsgroups: borland.public.jbuilder.java.api