aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes problem in refreshing JPanels Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem in refreshing JPanels" Watch "problem in refreshing JPanels" New topic
Author

problem in refreshing JPanels

partha phukan
Ranch Hand

Joined: Mar 13, 2011
Posts: 31
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......
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in refreshing JPanels