Article View: borland.public.jbuilder.java.swing
Article #8737Multiple line cells in a JTable
From: Jacques Desmazieres
Date: Wed, 26 Jul 2000 00:00
Date: Wed, 26 Jul 2000 00:00
9 lines
1275 bytes
1275 bytes
I am trying to enhance the JTable in order to have the ability to display multiple lines within a cell (full support of \n). In order to do that, I have changed the cell renderer, replacing the default one with a JTextArea. I also added some piece of code in order to change the row height according to the content of the cells. The issue is: nothing appears in the cells, except when I double click in a cell, then the content of this cell is displayed. Thanks for help Jacques Desmazieres
Technical Details
Message-ID:
<Plwf5.2019$yH6.3303444@nnrp4.proxad.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,472c4e178778fa97,start X-Google-Attributes: gid111d45,public From: "Jacques Desmazieres" <nospam.jacques.desmazieres@is2france.com> Subject: Multiple line cells in a JTable Date: 2000/07/26 Message-ID: <Plwf5.2019$yH6.3303444@nnrp4.proxad.net> X-Deja-AN: 650873580 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Complaints-To: abuse@proxad.net X-Trace: nnrp4.proxad.net 964596207 213.228.9.120 (Wed, 26 Jul 2000 09:23:27 CEST) Organization: Guest of ProXad - France X-MSMail-Priority: Normal Reply-To: "Jacques Desmazieres" <nospam.jacques.desmazieres@is2france.com> NNTP-Posting-Date: Wed, 26 Jul 2000 09:23:27 CEST Newsgroups: borland.public.jbuilder.java.swing