File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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

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

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.
I agree. Here's the link:
subject: Loading Data in JTable during client startup
It's not a secret anymore!