jAER project on SourceForge

net.sf.jaer.util
Class JAERWindowUtilities

java.lang.Object
  extended by net.sf.jaer.util.JAERWindowUtilities

public class JAERWindowUtilities
extends java.lang.Object

Use static methods for window handling.

Author:
tobi

Constructor Summary
JAERWindowUtilities()
          Creates a new instance of JAERWindowUtilities
 
Method Summary
static void constrainFrameSizeToScreenSize(javax.swing.JFrame frame)
          The preferred settings are loaded based on window name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAERWindowUtilities

public JAERWindowUtilities()
Creates a new instance of JAERWindowUtilities

Method Detail

constrainFrameSizeToScreenSize

public static void constrainFrameSizeToScreenSize(javax.swing.JFrame frame)
The preferred settings are loaded based on window name. A windows which would be displayed partly off-screen is moved to originate at 0,0. A window which would be too tall or wide is resized to screen size.

Parameters:
frame - JFrame

jAER project on SourceForge