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 / First Aid / December 2006

Tip: Looking for answers? Try searching our database.

Questions About JTable Cell Editing?

Thread view: 
RC - 07 Dec 2006 21:46 GMT
I am try to edit my table three columns:

Observation Time, Value and Mode where they are
Timestamp, Double and String.

My first question is do I need to create three
different DefaultCellditors, one for Timestamp, one
for Double and one for String?

Because I am thinking use JFormattedTextField instead just JTextField,
which I can force user type in correct Timestamp format and Double
digits.

I went to this page

http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

But I couldn't find some sample codes.
I also checked out Sun's TableDemo.java in SwingSet2. I only
found JComboBox CellEditor codes.

Can someone out there point me some sample codes how to create
some table cell editor?
Thank Q very much in advance!
hiwa - 08 Dec 2006 00:09 GMT
> I am try to edit my table three columns:
>
[quoted text clipped - 20 lines]
> some table cell editor?
> Thank Q very much in advance!
You could use the 'row' and 'column' parameters passed to the
getTableCellEditorComonent() method.


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.