This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Problem in reading JTable cell data. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Problem in reading JTable cell data." Watch "Problem in reading JTable cell data." New topic
Author

Problem in reading JTable cell data.

Bala Gangadhar
Ranch Hand

Joined: Oct 07, 2008
Posts: 98
    
    1
Hi All,
I am new to Swings.
As part of my swings app, i am using Jtable to let the user enter some data.
I am using below code to the read the data from the table.



I am unable to read the content of the cell which has focus. I mean if the user enters three data in three rows and the last column of the last row still has the focus with some user entered data, if I read this cell data it is coming as null.

Is this default behaviour of the JTable which can' t be changed or any fix for it?

Thanks in advance...

Bala.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20077
    
  30

My posts about this


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Bala Gangadhar
Ranch Hand

Joined: Oct 07, 2008
Posts: 98
    
    1
Thanks
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20077
    
  30

You're welcome.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Problem in reading JTable cell data.
 
jQuery in Action, 3rd edition