dsto.dfc.swing
Class SwingSupport

java.lang.Object
  extended by dsto.dfc.swing.SwingSupport

public final class SwingSupport
extends Object

General user interface support routines.

Version:
$Revision$

Method Summary
static Container findCommonParent(Component component1, Component component2)
          Find the closest parent container for two components.
static void killSplitPaneBorder(JSplitPane splitPane)
          Remove all borders from a split pane, including the special border used on the divider in JDK >= 1.3.
static void setAction(AbstractButton button, Action action)
          Set the action associated with a button.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

killSplitPaneBorder

public static void killSplitPaneBorder(JSplitPane splitPane)
Remove all borders from a split pane, including the special border used on the divider in JDK >= 1.3.


findCommonParent

public static Container findCommonParent(Component component1,
                                         Component component2)
Find the closest parent container for two components.

Returns:
The closest shared parent or null if components are not in a common tree.

setAction

public static void setAction(AbstractButton button,
                             Action action)
Set the action associated with a button. If using JDK >= 1.3.0, this will simply translate to a setAction () call on the button itself.



Copyright © 2008 Commonwealth of Australia