Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Kevin Nathan Newsgroups: comp.lang.java.gui Subject: Re: setText() is not always updating Jtextfield and Jlabel items Date: Fri, 27 Feb 2015 08:24:55 -0700 Lines: 28 Message-ID: <20150227082455.06203ed2@efreet.linux> References: <20150226132317.6bbbc29a@efreet.linux> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: individual.net IrBrrk7B63M8nMuGSanwUQty8UEWPzDzF02n/MhYrndklULu/q Cancel-Lock: sha1:DeejaZQ8RHzkVvEtob7ZDc4j/BQ= X-Newsreader: Claws Mail 3.10.1 (GTK+ 2.24.18; i586-suse-linux-gnu) X-Face: %/gp4MCQT=`#JS##?-]V9ksid6OSR@(wbF"bK6wSLO$u,%(N@X~bVhAD+\A_[gRhx*T6=fq "N_5H8.v[&;q0iw!s_wuL05B0xg#OYUkbn#@&U_]fL%o==~2sphc?*L+bicO!POJLG#p'N.]J0/p_w Z^(.kOB%Ob914-V>?GI; Xref: csiph.com comp.lang.java.gui:5457 On Thu, 26 Feb 2015 20:05:35 -0800 Knute Johnson wrote: >Two suggestions, first a call to JTextField.setText() must be on the >Event Dispatch Thread. I don't see you wrapping your calls on the EDT. > >Second, if the GUI isn't updating it is probably because the updates >are not on the EDT or the EDT is blocked for some reason. Without >more coherent code it is difficult to tell what is going on. > >But that is where I would look. Thanks, Knute! I don't know anything about wrapping calls on the EDT, so that looks like the path I need to research and learn. Even though I've been on this project for months, I still feel like I know next to nothing about Java; but it is slowly starting to come together! And I hate having to work on someone else's code with no comments, but that's just me... :-) -- Kevin Nathan (Arizona, USA) Linux is not a destination, it's a journey -- enjoy the trip! Linux 3.7.10-1.45-desktop 08:22am up 7 days 22:51, 18 users, load average: 0.39, 0.43, 0.43