com.melloware.jukes.util
Class GuiUtil
java.lang.Object
com.melloware.jukes.util.GuiUtil
public final class GuiUtil
- extends java.lang.Object
Swing Utilities used throughout the application.
Copyright (c) 1999-2007 Melloware, Inc.
- Version:
- 4.0
- Author:
- Emil A. Lefkof III
|
Method Summary |
static java.awt.Frame |
findComponentOwnerFrame(java.awt.Component component)
Goes to the root of component hierarchy until finds Frame or null. |
static java.awt.Frame |
findOwnerFrame(java.lang.Object obj)
Goes to the root of component hierarchy until finds Frame or null. |
static int |
getPreferredWidth(javax.swing.JScrollPane aScrollPane)
Gets the preferred width of a JScrollpane. |
static void |
setBusyCursor(java.awt.Component aComponent,
boolean aBusy)
Sets the cursor to hourglass for true and default for false. |
static void |
stopTableEditing(javax.swing.JTable aTable)
Find and stop a table's editing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getPreferredWidth
public static final int getPreferredWidth(javax.swing.JScrollPane aScrollPane)
- Gets the preferred width of a JScrollpane.
- Parameters:
aScrollPane - the scrollpane to get the width for
- Returns:
- the width of the scrollpaneas an int
setBusyCursor
public static void setBusyCursor(java.awt.Component aComponent,
boolean aBusy)
- Sets the cursor to hourglass for true and default for false. Used for
long operations such as saves.
- Parameters:
aBusy - true for busy cursor, false for default
findComponentOwnerFrame
public static java.awt.Frame findComponentOwnerFrame(java.awt.Component component)
- Goes to the root of component hierarchy until finds Frame or null.
- Parameters:
component - start of search.
- Returns:
- owner frame.
findOwnerFrame
public static java.awt.Frame findOwnerFrame(java.lang.Object obj)
- Goes to the root of component hierarchy until finds Frame or null.
- Parameters:
obj - object to start searching.
- Returns:
- owner frame.
stopTableEditing
public static void stopTableEditing(javax.swing.JTable aTable)
- Find and stop a table's editing.
- Parameters:
aTable - the JTable to stop editing
Copyright © 1999-2008 Melloware Inc. All Rights Reserved.