wood burning stoves 2.0*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Loading Data in JTable during client startup Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Loading Data in JTable during client startup" Watch "Loading Data in JTable during client startup" New topic
Author

Loading Data in JTable during client startup

Suresh Bansal
Ranch Hand

Joined: Jul 23, 2001
Posts: 91
Hello Friends,
I am loading data in JTable when client screen comes up. It works fine in local mode. In remote mode some time the data in JTable shows up on the screen and some times it does not. Data is getting properly in GUI as combo boxes table columns are coming properly. Data comes properly when i click on search button. I am loading data on screen on system startup as a seperate thread. I am also using SwingUtilities so that GUI is updated by event dispaching thread.
Any idea what might be wrong ? I am planning to remove threading bacause of this reason
Suresh


Journey is as important as the Destination.<br /> <br />PMP, SCJP, SCJD, SCEA (Part 1), SCMAD, SCDJWS
Robin Underwood
Ranch Hand

Joined: May 01, 2002
Posts: 117
Originally, I did load my JTable with the entire database on startup. It worked fine, so the threading may be your problem.
However, I did change my program to begin with an empty table on startup because I was concerned that startup would be really slow with a larger database.
 
wood burning stoves
 
subject: Loading Data in JTable during client startup