uk.org.iscream.cms.conient
Class SwingSafeAdd

java.lang.Object
  extended byuk.org.iscream.cms.conient.SwingSafeAdd
All Implemented Interfaces:
Runnable

public class SwingSafeAdd
extends Object
implements Runnable

Allows components to be safely added to containers This class takes a container and a component to add to the container. It then should be added to the Swing Event Dispatching Thread in order that the add can carry out.

Version:
$Id: SwingSafeAdd.java,v 1.6 2004/08/01 10:40:07 tdb Exp $
Author:
$Author: tdb $

Field Summary
private  JComponent _component
          The component to add
private  Container _container
          The container to add the component to
static String REVISION
          The current CVS revision of this class
 
Constructor Summary
SwingSafeAdd(Container container, JComponent component)
          Constructs a new instance.
 
Method Summary
 void run()
          Executed by the Swing Event Dispatch thread to update the display.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
The current CVS revision of this class

See Also:
Constant Field Values

_component

private JComponent _component
The component to add


_container

private Container _container
The container to add the component to

Constructor Detail

SwingSafeAdd

public SwingSafeAdd(Container container,
                    JComponent component)
Constructs a new instance.

Parameters:
container - the container to add the component to
component - the component to be added to the container
Method Detail

run

public void run()
Executed by the Swing Event Dispatch thread to update the display.

Specified by:
run in interface Runnable


Copyright © 2000-2003 i-scream. All Rights Reserved.