scala.swing

class Window

[source: scala/swing/Window.scala]

abstract class Window
extends UIElement with RootPanel with Publisher
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
Direct Known Subclasses:
RichWindow.Undecorated, RichWindow, Frame, Dialog

Values and Variables inherited from Publisher
listeners
Values and Variables inherited from Reactor
reactions
Method Summary
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.
override def contents_= (c : Component) : Unit
def defaultButton : Option[Button]
def defaultButton_= (b : Button) : Unit
def defaultButton_= (b : Option[Button]) : Unit
def dispose : Unit
def location_= (p : java.awt.Point) : Unit
def open : Unit
def owner : Window
def pack : Window
abstract def peer : java.awt.Window with InterfaceMixin
The underlying Swing peer.
def setLocationRelativeTo (c : UIElement) : Unit
Methods inherited from RootPanel
contents
Methods inherited from UIElement
self, foreground, foreground_=, background, background_=, minimumSize, minimumSize_=, maximumSize, maximumSize_=, preferredSize, preferredSize_=, preferredSize_=, font, font_=, locationOnScreen, location, bounds, size, size_=, size_=, locale, toolkit, cursor, cursor_=, visible, visible_=, showing, displayable, repaint, repaint, ignoreRepaint, ignoreRepaint_=, onFirstSubscribe, onLastUnsubscribe
Methods inherited from scala.swing.LazyPublisher
scala.swing.LazyPublisher.subscribe, scala.swing.LazyPublisher.unsubscribe
Methods inherited from Publisher
publish
Methods inherited from Reactor
listenTo, deafTo
Methods inherited from Proxy
hashCode, equals, toString
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Class Summary
protected trait InterfaceMixin extends javax.swing.RootPaneContainer
Method Details
abstract def peer : java.awt.Window with InterfaceMixin
The underlying Swing peer.
Overrides
UIElement.peer, RootPanel.peer

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

override def contents_=(c : Component) : Unit
Overrides
RootPanel.contents_=

def defaultButton : Option[Button]

def defaultButton_=(b : Button) : Unit

def defaultButton_=(b : Option[Button]) : Unit

def dispose : Unit

def pack : Window

def setLocationRelativeTo(c : UIElement) : Unit

def centerOnScreen : Unit

def location_=(p : java.awt.Point) : Unit

def owner : Window

def open : Unit

def close : Unit