File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
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: 82
    
    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: 19684
    
  20

My posts about this


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

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

Joined: Oct 27, 2005
Posts: 19684
    
  20

You're welcome.
 
Don't get me started about those stupid light bulbs.
 
subject: Problem in reading JTable cell data.