Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5112

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

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.gui
Subject Re: How do I create a TableCellEditor that is larger than the cell?
Date 2012-03-21 01:25 -0400
Organization The Wasteland
Message-ID <nospam-F8A915.01253621032012@news.aioe.org> (permalink)
References <1790ad46-d97f-42a4-bcd8-92fc3f50117e@lf20g2000pbb.googlegroups.com>

Show all headers | View raw


In article 
<1790ad46-d97f-42a4-bcd8-92fc3f50117e@lf20g2000pbb.googlegroups.com>,
 bcr666 <bcr666@gmail.com> wrote:

> 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.

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>

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Find similar


Thread

How do I create a TableCellEditor that is larger than the cell? bcr666 <bcr666@gmail.com> - 2012-03-20 11:40 -0700
  Re: How do I create a TableCellEditor that is larger than the cell? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-03-20 12:09 -0700
  Re: How do I create a TableCellEditor that is larger than the cell? "John B. Matthews" <nospam@nospam.invalid> - 2012-03-21 01:25 -0400

csiph-web