This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Performance and the fly likes slow swing application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "slow swing application" Watch "slow swing application" New topic

slow swing application

Fahad Cheruveedu

Joined: Aug 29, 2005
Posts: 5
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

Joined: Jul 11, 2001
Posts: 14112
Use a profiler to find the bottleneck.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

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

Joined: Aug 29, 2005
Posts: 5
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)

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

Many thanks for your time and consideration
It is sorta covered in the JavaRanch Style Guide.
subject: slow swing application
It's not a secret anymore!