| java.lang.Object com.pk.WindowUtilities
WindowUtilities | public class WindowUtilities (Code) | | A few utilities that simplify using windows in Swing.
1998-99 Marty Hall, http://www.apl.jhu.edu/~hall/java/
|
Method Summary | |
public static JFrame | openInJFrame(Container content, int width, int height, String title, Color bgColor) A simplified way to see a JPanel or other Container. | public static JFrame | openInJFrame(Container content, int width, int height, String title) Uses Color.white as the background color. | public static JFrame | openInJFrame(Container content, int width, int height) Uses Color.white as the background color, and the
name of the Container's class as the JFrame title. | public static void | setJavaLookAndFeel() | public static void | setMotifLookAndFeel() | public static void | setNativeLookAndFeel() Tell system to use native look and feel, as in previous
releases. |
openInJFrame | public static JFrame openInJFrame(Container content, int width, int height, String title, Color bgColor)(Code) | | A simplified way to see a JPanel or other Container.
Pops up a JFrame with specified Container as the content pane.
|
openInJFrame | public static JFrame openInJFrame(Container content, int width, int height, String title)(Code) | | Uses Color.white as the background color.
|
openInJFrame | public static JFrame openInJFrame(Container content, int width, int height)(Code) | | Uses Color.white as the background color, and the
name of the Container's class as the JFrame title.
|
setJavaLookAndFeel | public static void setJavaLookAndFeel()(Code) | | |
setMotifLookAndFeel | public static void setMotifLookAndFeel()(Code) | | |
setNativeLookAndFeel | public static void setNativeLookAndFeel()(Code) | | Tell system to use native look and feel, as in previous
releases. Metal (Java) LAF is the default otherwise.
|
|
|