Article View: borland.public.jbuilder.java.language
Article #18510Adding items to a JList
From: Chris Fowlkes
Date: Wed, 17 Jun 1998 00:00
Date: Wed, 17 Jun 1998 00:00
42 lines
1704 bytes
1704 bytes
This is a multi-part message in MIME format. --------------91B543758698D2CC416696ED Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit What's a good way to add Items to a JList? I tried ((DefaultListModel)list.getModel()).addElement(String) but I get a casting error in the console. Thanks in advance, Chris -- ****************************************** Email address: chris@bitwiseinc.com ****************************************** --------------91B543758698D2CC416696ED Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Chris Fowlkes Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Chris Fowlkes n: Fowlkes;Chris org: bitWise, inc. adr: 9051 Executive Park Dr., Suite 200;;;Knoxville;TN;37923-4642;United States email;internet: chris@bitwiseinc.com title: Software Engineer tel;work: (423) 292-1000 tel;fax: (423) 292-1001 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------91B543758698D2CC416696ED--
Technical Details
Message-ID:
<3587E56F.498CA54B@bitwiseinc.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,18378ac57aee3e8d,start X-Google-Attributes: gidf74b3,public From: Chris Fowlkes <chris@bitwiseinc.com> Subject: Adding items to a JList Date: 1998/06/17 Message-ID: <3587E56F.498CA54B@bitwiseinc.com> X-Deja-AN: 363549668 Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------91B543758698D2CC416696ED" Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language