Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5457
| From | Kevin Nathan <knathan@project54.com> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: setText() is not always updating Jtextfield and Jlabel items |
| Date | 2015-02-27 08:24 -0700 |
| Message-ID | <20150227082455.06203ed2@efreet.linux> (permalink) |
| References | <20150226132317.6bbbc29a@efreet.linux> <mcoqd0$84k$1@dont-email.me> |
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 | Next — Previous in thread | Next in thread | Find similar
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