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

slow swing application

 
Fahad Cheruveedu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
swing desktop application is seems to be very slow, can you sugest tip to improve the perfomance, I am using jdbc odbc, and JRE 1.5
After some time application is very slow

Many thanks for your time and consideration
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use a profiler to find the bottleneck.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure there is no odbc-less jdbc-driver for your Database?
Often people use odbc, because it was recommended in the earliest tutorials and was traded from one to another.
 
Fahad Cheruveedu
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I used profiler and most time cunsumming thread are
sun.java2D.Disposer --> java.lang.ref.RefrenceQueue.remove(long l)
java.awt.EventDispatchThread --> java.awt.EventQueue.dispatchEvent(java.awt.AwtEvent evt)
sun.awt.AwtAutoShutdown.run()
sun.awt.windows.WToolkit.run()
javax.swing.TimerQueue.run()

I am sure that some body can assisst me on this problem

Many thanks for your time and consideration
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic