Article View: borland.public.jbuilder.java.swing
Article #11580Re: JComboBox displaying a Tree list
From: Brian Duff
Date: Mon, 10 May 1999 00:00
Date: Mon, 10 May 1999 00:00
22 lines
1362 bytes
1362 bytes
Hi Vinod, One way of implementing this would be subclassing DefaultCellRenderer and using Component.setInsets(...) to change the horizontal offset of any given row depending on it's hierarchical position in the tree. Hope this helps. Brian vinodgovindan@usa.net wrote: > > I have been working on trying to use a JComboBox to Display a tree instead of > just a list. ----------------------------------------------------------------------- Brian Duff,Software Engineer,JDeveloper Enterprise Ed. 3.0 Development The views expressed here don't necessarily represent those of Oracle Work: bduff@uk.oracle.com Play: dubh@btinternet.com Tel: (+44) (0)1189 244901 http://wired.dcs.st-and.ac.uk/~briand -----------------------------------------------------------------------
Technical Details
Message-ID:
<3736F029.B02B104B@btinternet.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7gk6ka$ree$1@nnrp1.dejanews.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,d52f352ab43ce753 X-Google-Attributes: gid111d45,public From: Brian Duff <dubh@btinternet.com> Subject: Re: JComboBox displaying a Tree list Date: 1999/05/10 Message-ID: <3736F029.B02B104B@btinternet.com> X-Deja-AN: 476190610 Content-Transfer-Encoding: 7bit References: <7gk6ka$ree$1@nnrp1.dejanews.com> To: vinodgovindan@usa.net Content-Type: text/plain; charset=us-ascii Organization: Oracle Corporation UK Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing