Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

why my application get delayed when maximized ?  RSS feed

 
raj varma
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have developed a full screen application in swing . It has backgroud image.
When i minimized the application and keep it in minimized state for a long time and then maximized, Application takes long time to display its all containts till that time It shows empty gray background.
I am using windows 98se.
How do i tackle the problem ?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Swing double buffers all it's components... depending on the resolution of your screen and the memory of your system, the JDK is going to be hit with a massive increase in memory usage going from a minimized view to a full-screen view...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!