getOpenNonToolWindows(JInternalFrame[] frames) Return an array containing all JInternalFrame objects
that were passed in frames that are not tool windows.
Centers passed internal frame within its desktop area. If centering
would cause the title bar to go off the top of the screen then move the
window down.
Parameters: frame - The internal frame to be centered. throws: IllegalArgumentException - If frame is null.
centerWithinParent
public static void centerWithinParent(Window wind)(Code)
Centers wind within its parent. If it has no parent then
center within the screen. If centering would cause the title bar to go
above the parent (I.E. cannot see the titlebar and so cannot move the
window) then move the window down.
Parameters: wind - The Window to be centered. throws: IllegalArgumentException - If wind is null.
centerWithinScreen
public static void centerWithinScreen(Window wind)(Code)
Centers wind within the screen. If centering would cause the
title bar to go off the top of the screen then move the window down.
Parameters: wind - The Window to be centered. throws: IllegalArgumentException - If wind is null.
Return an array containing all JInternalFrame objects
that were passed in frames that are not tool windows.
and are not minimized.
Parameters: frames - JInternalFrame objects to be checked.
Return an array containing all JInternalFrame objects
that were passed in frames that are not tool windows.
Parameters: frames - JInternalFrame objects to be checked.
Return an array containing all JInternalFrame objects
that were passed in frames that are tool windows.
Parameters: frames - JInternalFrame objects to be checked.
Inserts newlines at or before lineLength at spaces or commas. If no space
or comma can be found, the resultant line will not be broken up by
newlines.
Parameters: line - the line to word-wrap Parameters: lineLength - the maximum length any segment should be. a line with newlines inserted
Return true if frame is a tool window. I.E. is the
JInternalFrame.isPalette set to Boolean.TRUE?
Parameters: frame - The JInternalFrame to be checked. throws: IllegalArgumentException - If frame is null.
public static void processOnSwingEventThread(Runnable todo)(Code)
processOnSwingEventThread
public static void processOnSwingEventThread(Runnable todo, boolean wait)(Code)
setJButtonSizesTheSame
public static void setJButtonSizesTheSame(JButton[] btns)(Code)
Change the sizes of all the passed buttons to be the size of the
largest one.
Parameters: btns - Array of buttons to eb resized. throws: IllegalArgumentException - If btns is null.
setMainFrame
public static void setMainFrame(JFrame mainFrame)(Code)
To make the main window available to fw classes.
This method is called during application start by WindowManager.