Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Swing / AWT / SWT and the fly likes JTable Cell Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable Cell" Watch "JTable Cell" New topic

JTable Cell

Apan Raj

Joined: Sep 04, 2003
Posts: 20
I have a JTable and a button clicking on which data from JTable cell is to be taken. Its actually giving all the values except the last cell data. while clicking the button the focus is on the last cell.
Its working fine if I deliberatly lose the focus by clicking come where and then click on the button.
Any solutions ?? I cant expect the user to do that every time.

"If everything is in your way, sure you are on the wrong lane"
Tim Troy
Ranch Hand

Joined: Apr 02, 2003
Posts: 51
Call a method like this:
Apan Raj

Joined: Sep 04, 2003
Posts: 20
Thank you Tim.
I agree. Here's the link:
subject: JTable Cell
It's not a secret anymore!