Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4900
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Novice <novice@example..com> |
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Existing Cell Renderers/Editors for long text passages? |
| Date | Thu, 5 Jan 2012 23:08:52 +0000 (UTC) |
| Organization | Your Company |
| Lines | 42 |
| Message-ID | <Xns9FD1B89BAAD13jpnasty@94.75.214.39> (permalink) |
| References | <Xns9FD09960E6B65jpnasty@94.75.214.39> <4r6bg756cmq2c025air81bs93bq81et3pk@4ax.com> |
| NNTP-Posting-Host | 5PPmjkvSSHvzZTySRz75XA.user.speranza.aioe.org |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Xnews/5.04.25 |
| X-Antivirus-Status | Clean |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| X-Antivirus | avast! (VPS 120105-1, 2012-01-05), Outbound message |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.gui:4900 |
Show key headers only | View raw
Roedy Green <see_website@mindprod.com.invalid> wrote in news:4r6bg756cmq2c025air81bs93bq81et3pk@4ax.com: > On Wed, 4 Jan 2012 20:04:36 +0000 (UTC), Novice <novice@example..com> > wrote, quoted or indirectly quoted someone who said : > >>Rather than re-invent the wheel, I was wondering if anyone is aware of >>source code for any existing JTable cell editors and renderers for >>displaying cells that have substantial amounts of text in them? >> >>I have a JTable that has three columns of text, two of which are >>occasionally very wide. (They are several hundred characters as >>opposed to several thousand or several million characters.) I think >>I'd like to see those long values displayed in a JScrollPane, >>word-wrapped over several lines so that you can see the whole thing at >>once and I'd like to edit them the same way. >> >>I can probably figure out how to do this myself but this seems like a >>problem others will have already solved so I thought I'd see if anyone >>could point me to existing (free) code for this purpose. > > The components JTextArea JTextPane JTextEditor with scrollers let you > do word wrap. Why would you need to roll your own component? > Well, don't I feel foolish! I hadn't even thought of a JTextEditor. I knocked together a JTextArea within a JScrollPane that does the job reasonably well so far. Maybe I should spend a minute with JTextEditor and see if I like it better..... > Is the problem with way CellRenderers/Editors recycle the same > component, pouring the text into it, (which is slow)? You want all > your cells already filled with data? Not at all. I haven't even thought about performance yet and probably won't have to since the table in question is small and likely to stay that way. The table will be initially filled with data but not MUCH data and I will add a row at a time as needed. -- Novice
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar
Existing Cell Renderers/Editors for long text passages? Novice <novice@example..com> - 2012-01-04 20:04 +0000
Re: Existing Cell Renderers/Editors for long text passages? Jeff Higgins <jeff@invalid.invalid> - 2012-01-04 16:06 -0500
Re: Existing Cell Renderers/Editors for long text passages? Novice <novice@example..com> - 2012-01-04 21:20 +0000
Re: Existing Cell Renderers/Editors for long text passages? Jeff Higgins <jeff@invalid.invalid> - 2012-01-04 18:52 -0500
Re: Existing Cell Renderers/Editors for long text passages? Novice <novice@example..com> - 2012-01-05 23:06 +0000
Re: Existing Cell Renderers/Editors for long text passages? Roedy Green <see_website@mindprod.com.invalid> - 2012-01-05 04:47 -0800
Re: Existing Cell Renderers/Editors for long text passages? Novice <novice@example..com> - 2012-01-05 23:08 +0000
csiph-web