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


Groups > comp.lang.java.programmer > #35858

Re: Interrupt code while running (from Form)

From Nigel Wade <nmw@local.domain>
Newsgroups comp.lang.java.programmer
Subject Re: Interrupt code while running (from Form)
Date 2016-10-21 16:38 +0100
Message-ID <e6ur3gFde59U1@mid.individual.net> (permalink)
References (2 earlier) <e6s4itFob35U1@mid.individual.net> <191335d2-ae49-4ab0-b502-1d71d62b6bc0@googlegroups.com> <e6satdFps6iU1@mid.individual.net> <3419f58a-99c1-49c7-b4fe-2cb3b70313ad@googlegroups.com> <e6unk0FcjhiU1@mid.individual.net>

Show all headers | View raw


On 21/10/16 15:38, Nigel Wade wrote:
> But SwingWorker does it all for you, and doesn't hang your process when the EDT finishes. What reason is there not to use it?

I should have added that SwingWorker implements the Future interface.
For none Swing applications the equivalent class to use would be FutureTask.

For the masochists there's always the "Good Old Days" of multi-threaded C programming in X/Motif applications using an implementation of threads which pre-dates POSIX pthreads. Passing events from your own threads to the Motif event loop was always good bit of fun for late on a Friday afternoon.

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Interrupt code while running (from Form) jkl <euclidalgorithm@gmail.com> - 2016-10-20 01:44 -0700
  Re: Interrupt code while running (from Form) Nigel Wade <nmw@local.domain> - 2016-10-20 10:33 +0100
  Re: Interrupt code while running (from Form) Eric Douglas <e.d.programmer@gmail.com> - 2016-10-20 05:27 -0700
    Re: Interrupt code while running (from Form) Nigel Wade <nmw@local.domain> - 2016-10-20 16:01 +0100
      Re: Interrupt code while running (from Form) Eric Douglas <e.d.programmer@gmail.com> - 2016-10-20 08:47 -0700
        Re: Interrupt code while running (from Form) Nigel Wade <nmw@local.domain> - 2016-10-20 17:49 +0100
          Re: Interrupt code while running (from Form) Eric Douglas <e.d.programmer@gmail.com> - 2016-10-20 10:17 -0700
            Re: Interrupt code while running (from Form) Nigel Wade <nmw@local.domain> - 2016-10-21 15:38 +0100
              Re: Interrupt code while running (from Form) Nigel Wade <nmw@local.domain> - 2016-10-21 16:38 +0100
        Re: Interrupt code while running (from Form) lewbloch@gmail.com - 2016-10-22 16:18 -0700

csiph-web