Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I create a TableCellEditor that is larger than the cell?

14 views
Skip to first unread message

bcr666

unread,
Mar 20, 2012, 2:40:10 PM3/20/12
to
I have a table of items and each row has a "comment" field that could
have several sentences in it. I would like the user to be able to
start editing the cell like normal, but have a larger box to type
into, so they can see what they type. The displaying of comments will
be "..." if the comment is entered, or "" if no comment is entered. A
tooltip will take care of actually displaying the comment to the user.

Daniel Pitts

unread,
Mar 20, 2012, 3:09:30 PM3/20/12
to
It's been a while, but can't you specify the Component that is to be
used to edit the content. I thought there was an interface for that,
and I'm too lazy right now to google for you.

good luck,

John B. Matthews

unread,
Mar 21, 2012, 1:25:36 AM3/21/12
to
In article
<1790ad46-d97f-42a4...@lf20g2000pbb.googlegroups.com>,
You might look at TablePopupEditor, in which the CellEditor is a JButton
that controls a JDialog:

<http://stackoverflow.com/a/3591230/230513>

--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
0 new messages