Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making menus and dialog appear faster

 
Mark Herreras
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!

I'd like to know how to make popup menu's and dialog boxes appear faster...
Because when i first click a JMenuItem which corresponds to a dialog box, the dialog box doesn't appear immediately but then any subsequent clicks on the JMenuItem, the dialog box appears fast.

Is there any way to do this? im willing to sacrifice the start up time of the prog to do it... thanks!
 
Mark Herreras
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh..sorry i posted in the wrong forum.
 
Ken Blair
Ranch Hand
Posts: 1078
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using the same instance of the dialog or is there some shared resource that takes time to intialize the first time it's created? Performing that at startup might achieve more desirable results.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic