It
depends whether you want the contained table to be editable or not. If you
do then yes it will be more work. Are you saying that all cells of the
containing table are other components. If so you can create a table model
that returns the relevant component for the given cell as its value. You
then write a single renderer and a single editor for the table. Each of
these returns the value as its renderer/editor component.
Dave Wathen
Canzonet Limited
http://www.canzonet.com
mailto:[EMAIL PROTECTED]
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Amit Rana
Sent: 09 April 2002 10:47
To: advanced_swing
Subject: RE: JTable inside a JTable
Importance: Highis creating cell renderer sufficient?in order to display a button we have to take care of1. cell renderer2. override public TableCellEditor getCellEditor(int row, int col) [otherwise, clicking on the button results in a textfield]this is a cumbersome job when each cell can be different.I am talking about a table in which each cell can be different i.e. JButton, JTable, Image etc....-----Original Message-----
From: Dave Wathen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 09, 2002 6:38 PM
To: Amit Rana; advanced_swing
Subject: RE: JTable inside a JTableCreate a cell renderer that returns the JTable as its component.Dave Wathen
Canzonet Limited
http://www.canzonet.com
mailto:[EMAIL PROTECTED]