Overview
A Frame
is a top-level window with a title and a border,
and an optional menu bar.
Attribute Summary
name | type | description |
---|---|---|
Public | ||
active | Boolean | |
background | AbstractColor | |
centerOnScreen | Boolean | |
content | Widget | |
dispose | Boolean | |
disposeOnClose | Boolean | |
height | Number | |
hideOnClose | Boolean | |
iconified | Boolean | |
iconImage | Image |
The icon image for this frame, or |
menubar | MenuBar | |
onClose | function():Void | |
onOpen | function():Void | |
owner | UIElement | |
resizable | Boolean |
This field indicates whether the frame is resizable. |
screenx | Number | |
screeny | Number | |
showing | Boolean | |
title | String |
This is the title of the frame. |
undecorated | Boolean |
Disables or enables decorations for this frame. |
visible | Boolean |
Makes the frame visible or invisible. |
width | Number | |
Protected |
Inherited Attributes
javafx.ui.AbstractFrame
public | name | type |
---|---|---|
win | Window |
javafx.ui.UIElement
public | name | type |
---|---|---|
context | UIContext | |
lookAndFeel | String |
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
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 close():JFrame
-
Returns
- JFrame
public getFrame():JFrame
-
Returns
- JFrame
public hide():Boolean
-
Returns
- Boolean