• 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
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

frame.show() takes very long time to display

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
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?
thanks,
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic