• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Event Driven Queries

 
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I got a event driven query which happens to be returning
something when being put in the SQLite Manager.
I have printed out the query when it got generated,
and pasted it in the SQLite manager.
And it shows the results correctly.
But "Nothing found" is always displayed
when the same search string is inputted to
the searchCustomerTable method.
Why is that?
And although sometimes it is found, the table doesn't get refreshed
Thanks
Jack
 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just don't understand why the JTable doesn't refresh itself.
I re-select the re-bind the table to the query to no avail.
I do a fireTableChanged also.
and table.revalidate() + table.repaint();
all of the above, but nothing happens
Thanks
Jack
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving this to the Swing forum since it isn't really about JDBC.
reply
    Bookmark Topic Watch Topic
  • New Topic