This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Displaying time inside a table cell Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Displaying time inside a table cell" Watch "Displaying time inside a table cell" New topic
Author

Displaying time inside a table cell

Ajit Malleri
Greenhorn

Joined: Feb 10, 2002
Posts: 27
I have a requirement for my application. I need to display a timer inside the cell of JTable. The table will be displaying records of multiple users visiting the site. The column should display the total time spent on the page. I am using a customized Table Model. How can I go about it?
Thanks,
Ajit


SCJP, SCWCD
Abhik Sarkar
Ranch Hand

Joined: Jun 14, 2003
Posts: 61
Hi Ajit,
Are you saying that you want the cell to display some kind of a countdown timer which keeps updating every second? If so, it might be a somewhat resource consuming application... because it would need a lot of repainting all the time. Of course, it should be possible with a custom Cell Renderer.
I will try to write a small example ASAP...
Best regards,
Abhik.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Displaying time inside a table cell