Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable discards input when focus lost

843804Nov 1 2004 — edited Nov 1 2004
Hi! Im running Java 1.4.2-b28.

Problem as follows:
I have a JTable where the user can enter som data.
I also have a button with the caption "Minimize" that starts processing of the same data.

If i enter a value into the table (say "foo") and press "Minimize" when the cell is in editing mode, "foo" is NOT SAVED into the JTable's TableModel! getValueAt(int row, int col) returns an old value instead!

How can i change the focus lost behaviour on the cell? Is this a bug??

Regards
/Alex
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 29 2004
Added on Nov 1 2004
1 comment
129 views