Java Swing – UI Freezing
•
Java
I did some routines in Java (1.5) swing, which took some time How is the best way to implement this route outside the swing thread to avoid UI freezing?
Thank you in advance
Solution
At first glance, look at the swingworker class When you want to make your code more robust and testable, you may want to stay away from it, but this is a good first start
You can get the version of Java 1.5 here Use 1.6, which is part of the standard API
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码