This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

problem in refreshing JPanels

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everyone! i need to refresh my JPanel with new data, but i could not able to do it....



Here this is the main class of my project. Above CurrentPanel, HoursPanel, DaysPanel are 3 separate classes where i displayed some JLabels and Graphs and JTables, and the corresponding values for them are taken from the database by executing some queries..... In all the classes i performed all the operations and returned the JPanels. i have used a cardlayout and added the 3 (returned) JPanels in the cardlayout panel( i.e mainPanel) All my queries are running properly everything is fine. But i don't know how to refresh the JLabel, JTable and Graphs values with time. I am maintaining a database table with time as a field. As time changes the queries must take the new time values and displayed in the correspnding places of JLabels, JTable and Graphs.....

I don't know how to use timers. i searched in google and tried to apply myself but no any success.... Please guide me. Please give me some suggestion for this. please.... thank you in advance......
 
This tiny ad will self destruct in five seconds.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic