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


Groups > comp.lang.java.gui > #3730 > unrolled thread

Re: (newbie) How to get t

Started by"Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this>
First post2011-04-27 15:46 +0000
Last post2011-04-27 15:46 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.gui

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: (newbie) How to get t "Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this> - 2011-04-27 15:46 +0000

#3730 — Re: (newbie) How to get t

From"Larry A Barowski" <larry.a.barowski@THRWHITE.remove-dii-this>
Date2011-04-27 15:46 +0000
SubjectRe: (newbie) How to get t
Message-ID<4ZGdndVr08BNlfjVnZ2dnUVZ_jidnZ2d@comcast.com>
  To: comp.lang.java.gui

"mrstephengross" <mrstevegross@gmail.com> wrote in message 
news:7f9ba402-e19a-4975-9d35-4b4b6fb4f19a@p25g2000hsf.googlegroups.com...
> So here's my next swing question: I've got a combo box with an action
> listener. When you make a selection from the combo box, the action
> listener fires off and does a bunch of stuff that takes a few seconds
> to execute.
>
> However! While the action listener is executing, the combo box does
> NOT collapse. That is, I would expect it to first collapse (with the
> new selection highlighted) and THEN fully executed the action
> listener's code.
>
> Is there a way to do this? I've been trying out various
> implementations of the action listener to get it work, such as:

If you're going to do things that take a few seconds in the
EDT, then having the combo box stay open is a good way
to alert the user that some process is under way. Otherwise,
they will have no clue as to why the gui is frozen. You may
want to do anything that takes that long in another thread
though.

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

[toc] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web