The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

neeeeeeeed help with swing :(

Posted by Chin Loong on January 08, 2002 at 11:08 AM

hey guys,

i got a problem with my application. in my JTable, when I enter a value in a cell, and later press a button to update it, the value won't be properly input-ted into the corresponding cell unless I press the ENTER key after i finish typing the value!

so now i have to *remember* to press ENTER everytime i want to update anything in the table because if i don't, the value enter just before the "update" button is pressed won't be inside.

how do i deal with this problem? do i unfocus the table when the button is pressed, or what? how did u guys deal with this problem?



Replies:
  • solution Chin Loong January 09, 2002 at 11:31 PM (0)

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us