FrameLauncher

package thinlet
public class FrameLauncher
extends java.awt.Frame
implements java.awt.event.WindowListener

FrameLauncher is a double buffered frame to launch any thinlet component as an application

Constructor
publicFrameLauncher(String title, Thinlet content, int width, int height)

public FrameLauncher(java.lang.String title, thinlet.Thinlet content, int width, int height)

Construct and show a new frame with the specified title, including the given thinlet component. The frame is centered on the screen, and its preferred size is specified (excluding the frame's borders). The icon is the thinlet logo

Parameters:

title - the title to be displayed in the frame's border

content - a thinlet instance

width - the preferred width of the content

height - the preferred height of the content

Method
public voiddoLayout()

public void doLayout()

Clear the double buffer image (because the frame has been resized), the overriden method lays out its components (centers the thinlet component)

Overrides:

doLayout in class java.awt.Container

public voidpaint(Graphics g)

public void paint(java.awt.Graphics g)

Create a double buffer if needed, the thinlet component paints the content

Overrides:

paint in class java.awt.Container

public voidupdate(Graphics g)

public void update(java.awt.Graphics g)

Call the paint method to redraw this component without painting a background rectangle

Overrides:

update in class java.awt.Container

public voidwindowActivated(WindowEvent e)

public void windowActivated(java.awt.event.WindowEvent e)

public voidwindowClosed(WindowEvent e)

public void windowClosed(java.awt.event.WindowEvent e)

public voidwindowClosing(WindowEvent e)

public void windowClosing(java.awt.event.WindowEvent e)

Notify the thinlet component and terminates the Java Virtual Machine, or redisplay the frame depending on the return value of thinlet's destroy method (true by default, thus terminates the VM if not overriden)

public voidwindowDeactivated(WindowEvent e)

public void windowDeactivated(java.awt.event.WindowEvent e)

public voidwindowDeiconified(WindowEvent e)

public void windowDeiconified(java.awt.event.WindowEvent e)

public voidwindowIconified(WindowEvent e)

public void windowIconified(java.awt.event.WindowEvent e)

public voidwindowOpened(WindowEvent e)

public void windowOpened(java.awt.event.WindowEvent e)