• 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

How to change jTable data by jButton events

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

In my Swing GUI program, there are 5 jTables each having data from different Database table Data.

I want to change jTable and it's data by jButton event.


This code works,





But, if I want to control the categoryRangeBegin or dateRangeBegin from jButton actionPerformed() block, the same code as following does not work




>
 
Rancher
Posts: 3324
32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

the same code as following does not work



What does that mean?

Does it mean:

a) the TableModel is empty?
b) the table doesn't appear on the GUI?
c) something else?

Generally to it is better to create a new TableModel and then just use table.setModel(...) to refresh a visible table.
 
reply
    Bookmark Topic Watch Topic
  • New Topic