Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #5457

Re: setText() is not always updating Jtextfield and Jlabel items

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 <knathan@project54.com>
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> (permalink)
References <20150226132317.6bbbc29a@efreet.linux> <mcoqd0$84k$1@dont-email.me>
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

Show key headers only | View raw


On Thu, 26 Feb 2015 20:05:35 -0800
Knute Johnson <nospam@rabbitbrush.frazmtn.com> 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

Back to comp.lang.java.gui | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

setText() is not always updating Jtextfield and Jlabel items Kevin Nathan <knathan@project54.com> - 2015-02-26 13:23 -0700
  Re: setText() is not always updating Jtextfield and Jlabel items Jeff Higgins <jeff@invalid.invalid> - 2015-02-26 19:43 -0500
    Re: setText() is not always updating Jtextfield and Jlabel items Kevin Nathan <knathan@project54.com> - 2015-02-27 08:21 -0700
  Re: setText() is not always updating Jtextfield and Jlabel items Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2015-02-26 20:05 -0800
    Re: setText() is not always updating Jtextfield and Jlabel items Kevin Nathan <knathan@project54.com> - 2015-02-27 08:24 -0700
  Re: setText() is not always updating Jtextfield and Jlabel items Nigel Wade <nmw@ion.le.ac.uk> - 2015-02-27 15:45 +0000
    Re: setText() is not always updating Jtextfield and Jlabel items Kevin Nathan <knathan@project54.com> - 2015-03-02 09:33 -0700

csiph-web