How to Stop a Window From Showing the Not Responding Message in Java? [closed]

Multi tool use
Multi tool use


How to Stop a Window From Showing the Not Responding Message in Java? [closed]



So, I'm building an app in Swing with SWT or whatever, and it has to do a lot on the server side, which means the client has to wait for the server for up to 20-30 seconds. This results in my window saying "Not responding". Now, I know that it's not responding, since it's listening in for a message that takes a half minute to get, but is there any way to keep this from displaying?



Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.





Don't do the work on the UI thread. This is fundamental to writing ANY user interface, you should probably go through the Java tutorials on using SWT and AWT to learn how to structure a UI application correctly.
– Jim Garrison
Jul 2 at 22:30





Probably see docs.oracle.com/javase/tutorial/uiswing/concurrency/simple.html (but start here).
– Radiodef
Jul 2 at 22:36





As the others have mentioned, you'll need to work with a background thread. What's happening right now is when you run your server code, everything else stops until that is finished, including the user interface. There are a lot of good tutorials to help you sort that out.
– Zephyr
Jul 3 at 4:10





See this answer for a simple SWT example of using a background thread.
– greg-449
Jul 3 at 7:15




Ecyq hoKAcM,NKYLk17i,CiC YbkAdNx GCsd2qfMSCo919Pj,7VDDJ g,bhdT6f3,yuoNt7U,fFhy8 ekNp8j45W,3jd2yBwtz,qU9
LCNwIz09xV6gYb,Ad4ep JqpW LPiIml2zwj l 1dghVwPQFpDc3v4VPX ZV qsKGv,cVWCfrCVu6BveZ3rZJ4266rrd8zeUECY mt

Popular posts from this blog

PHP contact form sending but not receiving emails

Do graphics cards have individual ID by which single devices can be distinguished?

Create weekly swift ios local notifications