tag:blogger.com,1999:blog-3760169963830810897.post6525936815425309047..comments2023-03-26T21:00:59.091+01:00Comments on Code Butchering: [Java, SWT] Invalid thread accessAnonymoushttp://www.blogger.com/profile/13431481971279629409noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-3760169963830810897.post-38653861045345004962008-08-06T22:01:00.000+01:002008-08-06T22:01:00.000+01:00Allright!!!Perfect post..."But", if i have a loop ...Allright!!!<BR/><BR/>Perfect post..."But", if i have a loop or a method call that needs to wait, for example, i need to make a chat, then ill have a thread with a DatainputStream call:<BR/><BR/>while(true)<BR/>{<BR/> chatText.setText(in.readUTF());<BR/>}<BR/><BR/>its perfect doing exactly what u said, the text is refreshed with the received text... but the GUI stop to refresh at all... its like a function, not a thread...<BR/><BR/>thank you for some attention and sorry about my ugly english...<BR/><BR/>Im Lucas from Brasil<BR/><BR/>c ya ;)Unknownhttps://www.blogger.com/profile/08447514793425631615noreply@blogger.com