• 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

JTable Cell Editor

Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have a JTable where user can enter their address information. Table has street, zip, city, county and state as Columns. (I save these info to AddressTable)
Once user enters the zipcode I have to populate the city , state and county information from the database. (from ZipcodeTable)
So far I have a ZipEditor for the zip column, which validates if the user is entering correct zipcode.
My problem is once the zip editor is done the validation, how should I get the city, state and county from ZipCodeTable and display it on the JTable.
Right now once the validation is done, the cursor moves to the city column. Where should I capture the action that zip column is ready and refresh the current table with new city state and county info.
(I hope I explained it well)
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am guessing you have an action attached to validate the zip code? Why don't you add to that action?

If zipcode is valid, then pull stuff out of database and put into approriate fields.
I may be misunderstanding what you are trying to ask...

pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic