Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: two Editors in a swing table



You'll notice that TableCellEditor is an interface, which means it can decide which actual component it returns when getTableCellEditorComponent is called.

On May 2, 2006, at 7:56 AM, David Cake wrote:

I want to have two different editor behaviour for table cells in the one Swing table, so presumably two different CellEditor classes. Both are for editing what are essentially differently formatted types of String (which can't subclassed, because String is final). The only way to determine which editor is used is to assign editors to particular classes.
Whats the best way to get what I want, two editor behaviours for one table?
In fact, I don't really need two editors - just one editor, and some cells that work as plain strings.
Regards
David
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >two Editors in a swing table (From: David Cake <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.