new SwingWorker !!

A few months ago I discontinued the SwingWorkers project. The fact is that someone at Sun told me they were working on a rearchitecture of SwingWorker in order to include it in Mustang, so I decided to allow them to finish the stuff and give them the URL at Java.net.

Well, the whole think is done and it looks extremely well.

These guys have been smart enough so as to provide a SwingWorker with PropertyChange support, so you can fire PropertyChangeEvent whenever you want in your "doInBackground()" method, in order to notify the GUI (Swing thread) about any advances on computation. Some other nice features include cancelling the background task (public final boolean cancel(boolean mayInterruptIfRunning)) and including the possibility to schedule SwingWorkers using the Executor of your choice.

I'm sort of busy now but I promise posting some examples in the future.

Enjoy it!!

Comentarios:

Enviar un comentario:
Los comentarios han sido deshabilitados.
About

swinger

Search

Archives
« abril 2014
lunmarmiéjueviesábdom
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    
       
Hoy