• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

To Change focus between columns after editing values in a column

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everybody,

I have a JTable which uses a table model and an editor .The table has two columns .I need to enter some value in one column cell and then I have to press button ,where some validations are being done with the value entered before in the Jtable.Moreover I have used table changed event.The porblem I faced is the table changed event doesnt get fired when I click the button .But after entering the values in Jtable ,if I changed the focus to the other column with the help of mouse ,the table changed event get fired.So I think the main problem is in focus change of columns in Jtable ,or the listener doesnt know whether the ediing is stopped or not.Can any one provide me solution for this.
Thanks in advance.
Kumar.
 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic