com.melloware.jukes.util
Class GuiUtil
java.lang.Object
com.melloware.jukes.util.GuiUtil
public final class GuiUtil
- extends Object
Swing Utilities used throughout the application.
Copyright (c) 1999-2007 Melloware, Inc.
- Version:
- 4.0
- Author:
- Emil A. Lefkof III
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getPreferredWidth
public static final int getPreferredWidth(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(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 Frame findComponentOwnerFrame(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 Frame findOwnerFrame(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(JTable aTable)
- Find and stop a table's editing.
- Parameters:
aTable - the JTable to stop editing
Copyright © 1999-2010 Melloware Inc. All Rights Reserved.