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


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

Re: confused about the se

Started by"Ray Ma" <ray.ma@THRWHITE.remove-dii-this>
First post2011-04-27 15:37 +0000
Last post2011-04-27 15:37 +0000
Articles 3 — 2 participants

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: confused about the se "Ray Ma" <ray.ma@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
    Re: confused about the se "Laird Nelson" <laird.nelson@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000
      Re: confused about the se "Ray Ma" <ray.ma@THRWHITE.remove-dii-this> - 2011-04-27 15:37 +0000

#2180 — Re: confused about the se

From"Ray Ma" <ray.ma@THRWHITE.remove-dii-this>
Date2011-04-27 15:37 +0000
SubjectRe: confused about the se
Message-ID<1186065920.235197.65000@e9g2000prf.googlegroups.com>
  To: comp.lang.java.gui

  An implementation other than Sun's is free to
> fire listeners in any order whatsoever.

> If you didn't care
> about the specification, and only cared about this particular VM, you
> could probably rely on that, as it hasn't changed in years.
>
Thank you, Laird.
So what's that implementation other than Sun's?
Can I use it to control the order that EventListener get called?

---
 * 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] | [next] | [standalone]


#2182

From"Laird Nelson" <laird.nelson@THRWHITE.remove-dii-this>
Date2011-04-27 15:37 +0000
Message-ID<1186071710.350045.55770@e16g2000pri.googlegroups.com>
In reply to#2180
  To: comp.lang.java.gui
On Aug 2, 10:45 am, Ray Ma <Wenj...@gmail.com> wrote:
> So what's that implementation other than Sun's?

Well, if you were using, say, the IBM VM or something like that, then
they are free to fire events to listeners in any order they wish.

> Can I use it to control the order that EventListener get called?

No.  I mean, yes, you can figure out how any given Java platform
implementor (Sun, IBM, whoever...) does it by looking in their source
code, but the specification says no, you can't count on listeners
being fired in any particular order.

Best,
Laird

---
 * 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] | [prev] | [next] | [standalone]


#2184

From"Ray Ma" <ray.ma@THRWHITE.remove-dii-this>
Date2011-04-27 15:37 +0000
Message-ID<1186081781.510848.175570@x40g2000prg.googlegroups.com>
In reply to#2182
  To: comp.lang.java.gui
All right, I understand now.
Looks like a bad idea to register multiple listeners in my example
because, that "value" obtained by the calculator can be different
depending on which listener execute first.

---
 * 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] | [prev] | [standalone]


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


csiph-web