Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / November 2007

Tip: Looking for answers? Try searching our database.

JTable Cell Editor missing one method?

Thread view: 
RC - 08 Nov 2007 20:42 GMT
I am just wonder why in JTable

There are
TableCellEditor getCellEditor()
TableCellEditor getCellEditor(int row, int column)

But there is only

setCellEditor(TableCellEditor anEditor)

Why JTable doesn't have

setCellEditor(TableCellEditor anEditor, int row, int column) ?

What happen if I want to set each cell in a different editors?!
Daniel Pitts - 08 Nov 2007 21:04 GMT
> I am just wonder why in JTable
>
[quoted text clipped - 11 lines]
>
> What happen if I want to set each cell in a different editors?!
As I understand it, cell editors are free to return whatever component
needed for whatever cell.  You would specify the component for the
row/column in the cellEditor, not specify the cell editor for that
row/column.

Signature

Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.