Overview

A Frame is a top-level window with a title and a border, and an optional menu bar.

Attribute Summary

nametypedescription
Public
activeBoolean
backgroundAbstractColor
centerOnScreenBoolean
contentWidget
disposeBoolean
disposeOnCloseBoolean
heightNumber
hideOnCloseBoolean
iconifiedBoolean
iconImageImage

The icon image for this frame, or null if this frame doesn't have an icon image.

menubarMenuBar
onClosefunction():Void
onOpenfunction():Void
ownerUIElement
resizableBoolean

This field indicates whether the frame is resizable.

screenxNumber
screenyNumber
showingBoolean
titleString

This is the title of the frame.

undecoratedBoolean

Disables or enables decorations for this frame.

visibleBoolean

Makes the frame visible or invisible.

widthNumber
Protected

Inherited Attributes

javafx.ui.AbstractFrame

publicnametype
winWindow

javafx.ui.UIElement

publicnametype
contextUIContext
lookAndFeelString

Function Summary

public close() : JFrame
public getFrame() : JFrame
public hide() : Boolean
public move(dx: Number, dy: Number, ) : Boolean
public pack() : Void
public resize(dx: Number, dy: Number, ) : Boolean
protected setContentPane(widget: Widget, ) : Void
public setLocation(x: Number, y: Number, ) : Boolean
public setSize(width: Number, height: Number, ) : Boolean
public show() : Void
public showDialog(d: Dialog, ) : Void
public toBack() : Void
public toFront() : Void

Inherited Functions

javafx.ui.AbstractFrame

public bound getWindow() : Window

javafx.ui.UIElement

public static __EASE(a: Object, t: Number, f: Function1, interpolate: Function3, ) : Object
public static __EASEBOTH(t: Number, ) : Number
public static __EASEIN(t: Number, ) : Number
public static __EASEOUT(t: Number, ) : Number
public static __INTERPOLATE_NUM(value1: Number, value2: Number, t: Number, ) : Number
public static cmToPixel(cm: Number, ) : Number
public static DISCRETE(a: Number, t: Number, ) : Number
public static EASEBOTH(a: Number, t: Number, ) : Number
public static EASEIN(a: Number, t: Number, ) : Number
public static EASEOUT(a: Number, t: Number, ) : Number
public static getScreenResolution() : Integer
public static getUIContext() : UIContext
public bound getWindow() : Window
public static inchToPixel(inch: Number, ) : Number
public static LINEAR(a: Number, t: Number, ) : Number
public static mmToPixel(mm: Number, ) : Number
public static pointToPixel(pt: Integer, ) : Number

Attributes

public iconImage: Image

The icon image for this frame, or null if this frame doesn't have an icon image.

public resizable: Boolean

This field indicates whether the frame is resizable. This property can be changed at any time. resizable will be true if the frame is resizable, otherwise it will be false.

public title: String

This is the title of the frame. It can be changed at any time.

public undecorated: Boolean

Disables or enables decorations for this frame. This attribute can only be set while the frame is not displayable.

public visible: Boolean

Makes the frame visible or invisible. Frame's are initially invisible. You must explicitly assign true to this attribute to make the frame visible on the screen.

Functions

public hide():Boolean

Returns
Boolean

public move(dx: Number, dy: Number, ):Boolean

Parameters
dx
dy
Returns
Boolean

public resize(dx: Number, dy: Number, ):Boolean

Parameters
dx
dy
Returns
Boolean

public setLocation(x: Number, y: Number, ):Boolean

Parameters
x
y
Returns
Boolean

public setSize(width: Number, height: Number, ):Boolean

Parameters
width
height
Returns
Boolean