Article View: borland.public.jbuilder.java.swing
Article #12415Re: JTable Cell Editor - Multiline? Can it be done?
From: Zafir Anjum
Date: Sun, 10 Jan 1999 00:00
Date: Sun, 10 Jan 1999 00:00
34 lines
1764 bytes
1764 bytes
Take a look at the source code at CodeGuru http://www.codeguru.com/java There's an article called 'Display any JComponent in a cell' in the Swing | JTable section. This article also has a generic JComponent cell editor. You should be able to easily adapt this code to use the regular cell renderer but a JTextArea as your cell editor component. tfrysinger@earthlink.net (Tad Frysinger) wrote: >In article <75a349$rtp7@forums.borland.com>, carner@tscnet.com says...>> I would like to create a cell in a jtable that wraps, allowing long strings >> to be entered without scrolling behind the next column. If anyone knows a >> way to accomplish this I would appreciate the advice. >> >> I tried to build a cell editor constructing with JTextArea, but, of course, >> discovered it is not possible. >> >> Thanks very much in advance for any help you have to offer. >> >> Carla Kessler >> carner@tscnet.com >> >> >> >Why isn't it possible? > >Tad Frysinger >[TeamB] -----------------** -- Posted from CodeGuru -- **----------------- http://www.codeguru.com/java The website for Java programmers.
Technical Details
Message-ID:
<36994031.0@209.66.99.126>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<75a349$rtp7@forums.borland.com> <MPG.10e862837bde57a8989970@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,b0547ebbcd58310c X-Google-Attributes: gid111d45,public From: "Zafir Anjum" <zafir@codeguru.com> Subject: Re: JTable Cell Editor - Multiline? Can it be done? Date: 1999/01/10 Message-ID: <36994031.0@209.66.99.126> X-Deja-AN: 431050803 Sender: "Zafir Anjum" <zafir@codeguru.com> References: <75a349$rtp7@forums.borland.com> <MPG.10e862837bde57a8989970@forums.borland.com> Organization: Another Netscape Collabra Server User Reply-To: "Zafir Anjum" <zafir@codeguru.com> X-User-Info: 24.4.254.97 Newsgroups: borland.public.jbuilder.java.swing