org.brains2b.swingext.dialog
Class DialogHelper

java.lang.Object
  extended by org.brains2b.swingext.dialog.DialogHelper

public class DialogHelper
extends java.lang.Object

[Short description] [Long description]

Version:
[version] [Jul 6, 2007]
Author:
dennis@brains2b.nl

Constructor Summary
DialogHelper()
           
 
Method Summary
static javax.swing.JDesktopPane getDesktopPane(java.awt.Component parent)
          get the Desktoppane which is ancestor of a component
static java.awt.Window getWindowPane(java.awt.Component parent)
          get the Window which is ancestor of a component
static void showDialog(java.awt.Component parent, java.awt.Container pane, java.lang.String title)
          shows a JDialog on the Window in the hierarchy of the component supplied
static void showInternalDialog(java.awt.Component parent, java.awt.Container pane, java.lang.String title, javax.swing.Icon icon)
          shows a JInternalFrame on the Window in the hierarchy of the component supplied
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogHelper

public DialogHelper()
Method Detail

showDialog

public static final void showDialog(java.awt.Component parent,
                                    java.awt.Container pane,
                                    java.lang.String title)
shows a JDialog on the Window in the hierarchy of the component supplied

Parameters:
component - Component, the component on which this object should be supplied

showInternalDialog

public static final void showInternalDialog(java.awt.Component parent,
                                            java.awt.Container pane,
                                            java.lang.String title,
                                            javax.swing.Icon icon)
shows a JInternalFrame on the Window in the hierarchy of the component supplied

Parameters:
component - Component, the component on which this object should be supplied

getDesktopPane

public static final javax.swing.JDesktopPane getDesktopPane(java.awt.Component parent)
get the Desktoppane which is ancestor of a component

Parameters:
parent - Component, the component to find the JDesktopPane for
Returns:
JDesktopPane, the pane found in the hierarchy of the component, null in none was found.

getWindowPane

public static final java.awt.Window getWindowPane(java.awt.Component parent)
get the Window which is ancestor of a component

Parameters:
parent - Component, the component to find the Window for
Returns:
Window, the window found in the hierarchy of the component, null in none was found.