medi.swing.util
Class PictureSwingWorker

java.lang.Object
  |
  +--javatools.swing.SwingWorker
        |
        +--medi.swing.util.PictureSwingWorker

public class PictureSwingWorker
extends SwingWorker

It should be a class to show pictures in a JLabel in a separate thread.


Constructor Summary
PictureSwingWorker()
          Creates new PictureSwingWorker
 
Method Summary
 java.lang.Object construct()
          Compute the value to be returned by the get method.
 void finished()
          Called on the event dispatching thread (not on the worker thread) after the construct method has returned.
 void setIconPath(java.lang.String pIconPath)
          Sets the icon path (i.e. the picture file to show).
 void setLabel(javax.swing.JLabel label)
          Sets the JLabel to be used.
 
Methods inherited from class javatools.swing.SwingWorker
get, getValue, interrupt, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PictureSwingWorker

public PictureSwingWorker()
Creates new PictureSwingWorker

Method Detail

setLabel

public void setLabel(javax.swing.JLabel label)
Sets the JLabel to be used.

Parameters:
label - The JLabel to be used.

setIconPath

public void setIconPath(java.lang.String pIconPath)
Sets the icon path (i.e. the picture file to show).

Parameters:
pIconPath - The icon path.

construct

public java.lang.Object construct()
Compute the value to be returned by the get method.

Specified by:
construct in class SwingWorker
Returns:
The constructed label.

finished

public void finished()
Called on the event dispatching thread (not on the worker thread) after the construct method has returned.

Overrides:
finished in class SwingWorker