com.jspell.gui
Class Util

java.lang.Object
  extended by com.jspell.gui.Util

public class Util
extends java.lang.Object

GUI utility classes for JSpell.


Constructor Summary
Util()
           
 
Method Summary
static void centerDialog(java.awt.Dialog d, java.awt.Frame f)
          Center the Dialog within the Frame.
static java.awt.Frame getFrame(java.awt.Component c)
          Accept a component and look up the containment hierarchy for its Frame parent.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getFrame

public static final java.awt.Frame getFrame(java.awt.Component c)
Accept a component and look up the containment hierarchy for its Frame parent.

Parameters:
c - a Component object.
Returns:
a Frame object.

centerDialog

public static void centerDialog(java.awt.Dialog d,
                                java.awt.Frame f)
Center the Dialog within the Frame.

Parameters:
d - a Dialog.
f - a Frame.


JSpell SDK - Spell Checker for the Java ™ Platform
Copyright © 2009 Page Scholar Inc, All Rights Reserved - http://www.jspell.com