File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes takes very long time to display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark " takes very long time to display" Watch " takes very long time to display" New topic
Author takes very long time to display

harii haran

Joined: Jan 18, 2004
Posts: 11
i have 2 frames (frame1 & frame2) user logs in using frame1, frame2 is a jdbc applications which opens up database connections and icons to show, once the user logs in, frame2 takes quite a long time to display...what is the reason? is there any way to display it quick? or can u give me any other suggestions?
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Has the database connection already been made before you show() the frame? Does database data get saved ahead of time in the components models, or does it get requested as the components are displayed in the frame?

This is probably more of a problem with the design or threading (or lack thereof) in getting data from the database, rather than a GUI issue per se.

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: takes very long time to display
It's not a secret anymore!