Extension SDK 10.1.2

oracle.javatools.dialogs
Class DialogUtil

java.lang.Object
  extended byoracle.javatools.dialogs.DialogUtil

public final class DialogUtil
extends java.lang.Object

Dialog utilities.


Method Summary
static java.awt.Dialog getAncestorDialog(java.awt.Component parent)
          Given a Component, find its nearest hosting Dialog, if any, which may be itself.
static java.awt.Frame getAncestorFrame(java.awt.Component parent)
          Given a Component, find its nearest hosting Frame, if any, which may be itself.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAncestorDialog

public static java.awt.Dialog getAncestorDialog(java.awt.Component parent)
Given a Component, find its nearest hosting Dialog, if any, which may be itself.

Returns:
null if Component is not hosted by a Dialog

getAncestorFrame

public static java.awt.Frame getAncestorFrame(java.awt.Component parent)
Given a Component, find its nearest hosting Frame, if any, which may be itself.

Returns:
null if Component is not hosted by a Frame

Extension SDK

 

Copyright © 1997, 2004, Oracle. All rights reserved.