This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets 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: 19649
    
  18

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: 19649
    
  18

You're welcome.
 
jQuery in Action, 2nd edition
 
subject: Problem in reading JTable cell data.
 
Similar Threads
JTable(!!!)
JTable
JTable
Jtable
JTable