java - How to add thread MVC pattern theView to avoid JFrame Freezes -


i want run gui thread avoid freezes issues , how add thread view ? or have general idea avoid gui freeze issues.

public class vark {      public static void main(string[] args) {         // object creation view          varkview theview = new varkview();         // object creation model         varkmodel themodel = new varkmodel();         //  object creation controller  passing  themodel , theview         varkcontroller thecontroller = new varkcontroller(theview, themodel);         theview.setvisible(true);     } } 

to avoid freeze use swingworker long running tasks. read concurrency in swing


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

How to get multiresult with multicondition in Sql Server -