eclipse - How to auto refresh gui screen in java, after update taking place in a stored file? -


i have java swing application reads values components .text file. i'm trying update 1 of value , store in .text file , need refresh possibly in gui screen well. value modified in file gui not detect change without restart. have went through repaint(), re-validate() use of timers. can specify do? in advance.

a solution store of gui components in arraylist or other sort of list may prefer.

you read text file , add it's respective components list, , load list gui. when file edited, can loop through again , if component not exists in list can add in. if components in list don't correspond file can remove them list. after happens, can reload gui components in list.


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 -