Window

abstract class Window extends UIElement with RootPanel with PeerContainer with Publisher

A window with decoration such as a title, border, and action buttons.

A window with decoration such as a title, border, and action buttons.

An AWT window cannot be wrapped dynamically with this class, i.e., you cannot write something like new Window { def peer = myAWTWindow }

See also

javax.swing.JFrame

trait PeerContainer
trait RootPanel
trait Container
trait UIElement
trait LazyPublisher
trait Publisher
trait Reactor
trait Proxy
class Object
trait Matchable
class Any
class Dialog
class Frame
class MainFrame

Type members

Classlikes

protected trait InterfaceMixin extends RootPaneContainer
protected trait SuperMixin extends Window

Value members

Abstract methods

def peer: Window & InterfaceMixin

Concrete methods

def bounds_=(rect: Rectangle): Unit
def centerOnScreen(): Unit
def close(): Unit
def closeOperation(): Unit

This method is called when the window is closing, after all other window event listeners have been processed.

This method is called when the window is closing, after all other window event listeners have been processed.

override def contents_=(c: Component): Unit
Definition Classes
def defaultButton: Option[Button]
def defaultButton_=(b: Button): Unit
def defaultButton_=(b: Option[Button]): Unit
def dispose(): Unit
def location_=(p: Point): Unit
def open(): Unit
def pack(): Window
def size_=(size: Dimension): Unit

Inherited methods

Inherited from
UIElement
def background_=(c: Color): Unit
Inherited from
UIElement
Inherited from
UIElement
def componentOrientation: ComponentOrientation
Inherited from
UIElement
def componentOrientation_=(x: ComponentOrientation): Unit
Inherited from
UIElement
def contents: Seq[Component]

At most one component.

At most one component.

Inherited from
RootPanel
def cursor: Cursor
Inherited from
UIElement
def cursor_=(c: Cursor): Unit
Inherited from
UIElement
def deafTo(ps: Publisher*): Unit

Installed reaction won't receive events from the given publisher anylonger.

Installed reaction won't receive events from the given publisher anylonger.

Inherited from
Reactor
def displayable: Boolean
Inherited from
UIElement
override def equals(that: Any): Boolean
Definition Classes
Proxy -> Any
Inherited from
Proxy
def font: Font
Inherited from
UIElement
def font_=(f: Font): Unit
Inherited from
UIElement
Inherited from
UIElement
def foreground_=(c: Color): Unit
Inherited from
UIElement
override def hashCode(): Int
Definition Classes
Proxy -> Any
Inherited from
Proxy
def ignoreRepaint: Boolean
Inherited from
UIElement
def ignoreRepaint_=(b: Boolean): Unit
Inherited from
UIElement
def listenTo(ps: Publisher*): Unit

Listen to the given publisher as long as deafTo isn't called for them.

Listen to the given publisher as long as deafTo isn't called for them.

Inherited from
Reactor
def locale: Locale
Inherited from
UIElement
Inherited from
UIElement
Inherited from
UIElement
Inherited from
UIElement
def maximumSize_=(x: Dimension): Unit
Inherited from
UIElement
Inherited from
UIElement
def minimumSize_=(x: Dimension): Unit
Inherited from
UIElement
Inherited from
UIElement
def preferredSize_=(x: Dimension): Unit
Inherited from
UIElement
def publish(e: Event): Unit

Notify all registered reactions.

Notify all registered reactions.

Inherited from
Publisher
def repaint(rect: Rectangle): Unit
Inherited from
UIElement
def repaint(): Unit
Inherited from
UIElement
def self: Any
Inherited from
UIElement
def showing: Boolean
Inherited from
UIElement
Inherited from
UIElement
override def subscribe(listener: Reaction): Unit
Definition Classes
LazyPublisher -> Publisher
Inherited from
LazyPublisher
override def toString(): String
Definition Classes
Proxy -> Any
Inherited from
Proxy
def toolkit: Toolkit
Inherited from
UIElement
override def unsubscribe(listener: Reaction): Unit
Definition Classes
LazyPublisher -> Publisher
Inherited from
LazyPublisher
def validate(): Unit
Inherited from
UIElement
def visible: Boolean
Inherited from
UIElement
def visible_=(b: Boolean): Unit
Inherited from
UIElement

Inherited fields

protected val listeners: RefSet[Reaction]
Inherited from
Publisher

All reactions of this reactor.

All reactions of this reactor.

Inherited from
Reactor