pt.moredata.util
Class SwingUtilities

java.lang.Object
  extended bypt.moredata.util.SwingUtilities

public class SwingUtilities
extends java.lang.Object

SwingUtilities.java esta classe contem alguns metodos estaticos uteis no desenvolvimento de aplicações em swing. Company MoreData

Version:
$Revision: 1.3 $
Author:
psfbc

Method Summary
static void center(java.awt.Component w)
          Standard way how to place the window to the center of the screen.
static void center(java.awt.Component owner, java.awt.Component c)
          Standard way how to place the window to the center of other component.
static javax.swing.JComponent getFirstJComponentFromInnerContainer(java.awt.Container container)
          Realiza um procura em profundidade a procura do ultimo Container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

center

public static final void center(java.awt.Component w)
Standard way how to place the window to the center of the screen.


center

public static final void center(java.awt.Component owner,
                                java.awt.Component c)
Standard way how to place the window to the center of other component.


getFirstJComponentFromInnerContainer

public static javax.swing.JComponent getFirstJComponentFromInnerContainer(java.awt.Container container)
Realiza um procura em profundidade a procura do ultimo Container. Quando o acha pecorre todos os componentes desse container e seleciona o primeiro componente que nao seja uma JLabel. O componente selecionado e devolvido.

Returns:
O primeiro componente que nao seja um JLabel do container mais interior.