datepicker inside a JTable
1 posts in topic
Flat View  Flat View

Posted By:   Kristof_Heiremans
Posted On:   Tuesday, June 10, 2008 04:50 AM


I'd like to implement the following but I have no idea where to start:

I have a JTable with 1 column containing Date.

Now i'd like the cells in this column to be editable. I have a datepicker that i'd like to pop up when this cell is clicked and allowing the user to select a date which is then shown inside the cell and also modified in the backing object(that populated the JTable)

anyone ever done this before?


Re: datepicker inside a JTable

Posted By:   Robert_Lybarger  
Posted On:   Tuesday, June 10, 2008 08:55 AM

It is called a 'custom cell editor' and the Swing library makes this explicitly possible. Recommend you google for 'how to use tables' and pick the first link on the java.sun.com site, which gives scenarios and sample code for various JTable-related tasks... including, I believe, installing a custom editor.
About | Sitemap | Contact