• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Memory issues with Swing

 
Bartender
Posts: 1155
20
Mac OS X IntelliJ IDE Oracle Spring VI Editor Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Could the Sun Swing classes cause a significant memory leaks, enough to cause performance issues in an application?
Are there any particular Swing components that cause the garbage collector problems?
Lastly is this a problem with the classes provided by the framework classes or the ineffective use of them?
 
Ranch Hand
Posts: 194
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Could the Sun Swing classes cause a significant memory leaks, enough to cause performance issues in an application?
Are there any particular Swing components that cause the garbage collector problems?
Lastly is this a problem with the classes provided by the framework classes or the ineffective use of them?



If the Application is bug enough and the UI complex enough then yes it could cause performance issues. There are no swing components that i am aware of which are, in particular, a cause of memory leaks. But yes the JTable and JEditorPane/JTextPane are the components that you better be careful with. Better always do a cleanup with a destroy() method.
Also the anonymous inner classes sometimes cause issues with garbage collection. So avoid them as far as possible

Lastly the Framework has no issues it is almost always the inefficient use of it that causes issues

Hope that it helps!!
reply
    Bookmark Topic Watch Topic
  • New Topic