🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

How to deselect a JComboBox item ?

#10198
From: Steve Marchant
Date: Sat, 06 Nov 1999 00:00
7 lines
965 bytes
Does anyone know how to deselect an item in a JComboBox in the same way as you
can call select(-1) on an AWT ComboBox ? Passing -1 to setSelectedIndex() on a
JComboBox results in an ArrayOutOfBounds exception.

thanks in anticipation.

Steve
Technical Details
Message-ID: <38249B27.1D7634D9@usa.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,23410fab7b5bdb5c,start
X-Google-Attributes: gid111d45,public
From: Steve Marchant <steve.marchant{NOSPAM}@usa.net>
Subject: How to deselect a JComboBox item ?
Date: 1999/11/06
Message-ID: <38249B27.1D7634D9@usa.net>
X-Deja-AN: 545319872
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@uk.uu.net
X-Trace: lure.pipex.net 941923137 8386 62.188.4.82 (6 Nov 1999 21:18:57 GMT)
Organization: UUNET WorldCom server (post doesn't reflect views of UUNET WorldCom
Mime-Version: 1.0
NNTP-Posting-Date: 6 Nov 1999 21:18:57 GMT
Newsgroups: borland.public.jbuilder.java.swing