com.samskivert.swing.util
Class DialogUtil

java.lang.Object
  extended by com.samskivert.swing.util.DialogUtil

public class DialogUtil
extends Object

Utility methods for dialogs.


Constructor Summary
DialogUtil()
           
 
Method Summary
static JInternalDialog createDialog(JFrame frame, JPanel content)
          Creates and shows an internal dialog with the specified panel.
static JInternalDialog createDialog(JFrame frame, String title, JPanel content)
          Creates and shows an internal dialog with the specified title and panel.
static JInternalDialog getInternalDialog(Component any)
          Returns the internal dialog that is a parent of the specified component.
static void invalidateDialog(Component any)
          Invalidates and resizes the entire dialog given any component within the dialog in question.
static void setContent(JInternalDialog dialog, JPanel content)
          Sets the content panel of the supplied internal dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogUtil

public DialogUtil()
Method Detail

createDialog

public static JInternalDialog createDialog(JFrame frame,
                                           JPanel content)
Creates and shows an internal dialog with the specified panel.


createDialog

public static JInternalDialog createDialog(JFrame frame,
                                           String title,
                                           JPanel content)
Creates and shows an internal dialog with the specified title and panel.


setContent

public static void setContent(JInternalDialog dialog,
                              JPanel content)
Sets the content panel of the supplied internal dialog.


getInternalDialog

public static JInternalDialog getInternalDialog(Component any)
Returns the internal dialog that is a parent of the specified component.


invalidateDialog

public static void invalidateDialog(Component any)
Invalidates and resizes the entire dialog given any component within the dialog in question.



Copyright © 2000-2008 Michael Bayne. All Rights Reserved.