trait TerminatesOnClose extends Window
Give this convenience trait to a Swing GUI frame to make it terminate the application when closed.
- Alphabetic
- By Inheritance
- TerminatesOnClose
- Window
- RootPanel
- Container
- UIElement
- LazyPublisher
- Publisher
- Reactor
- Proxy
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Abstract Value Members
- abstract def peer: Window with InterfaceMixin
- Definition Classes
- Window → RootPanel → UIElement
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def background: scala.swing.Color
- Definition Classes
- UIElement
- def background_=(c: scala.swing.Color): Unit
- Definition Classes
- UIElement
- def bounds: Rectangle
- Definition Classes
- UIElement
- def bounds_=(rect: Rectangle): Unit
- Definition Classes
- Window
- def centerOnScreen(): Unit
- Definition Classes
- Window
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): Unit
- Definition Classes
- Window
- def closeOperation(): Unit
Call
closeOperation
on the superclass, then terminates the entire application.Call
closeOperation
on the superclass, then terminates the entire application. (Skips termination if it seems the program is running in the REPL.)- Definition Classes
- TerminatesOnClose → Window
- def componentOrientation: ComponentOrientation
- Definition Classes
- UIElement
- def componentOrientation_=(x: ComponentOrientation): Unit
- Definition Classes
- UIElement
- def contents: Seq[Component]
- Definition Classes
- RootPanel → Container
- def contents_=(c: Component): Unit
- Definition Classes
- Window → RootPanel
- def cursor: Cursor
- Definition Classes
- UIElement
- def cursor_=(c: Cursor): Unit
- Definition Classes
- UIElement
- def deafTo(ps: Publisher*): Unit
- Definition Classes
- Reactor
- def defaultButton: Option[Button]
- Definition Classes
- Window
- def defaultButton_=(b: Option[Button]): Unit
- Definition Classes
- Window
- def defaultButton_=(b: Button): Unit
- Definition Classes
- Window
- def displayable: Boolean
- Definition Classes
- UIElement
- def dispose(): Unit
- Definition Classes
- Window
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(that: Any): Boolean
- Definition Classes
- Proxy → Any
- def font: Font
- Definition Classes
- UIElement
- def font_=(f: Font): Unit
- Definition Classes
- UIElement
- def foreground: scala.swing.Color
- Definition Classes
- UIElement
- def foreground_=(c: scala.swing.Color): Unit
- Definition Classes
- UIElement
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- Proxy → Any
- def ignoreRepaint: Boolean
- Definition Classes
- UIElement
- def ignoreRepaint_=(b: Boolean): Unit
- Definition Classes
- UIElement
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def listenTo(ps: Publisher*): Unit
- Definition Classes
- Reactor
- val listeners: RefSet[Reaction]
- Attributes
- protected
- Definition Classes
- Publisher
- def locale: Locale
- Definition Classes
- UIElement
- def location: Point
- Definition Classes
- UIElement
- def locationOnScreen: Point
- Definition Classes
- UIElement
- def location_=(p: Point): Unit
- Definition Classes
- Window
- def maximumSize: Dimension
- Definition Classes
- UIElement
- def maximumSize_=(x: Dimension): Unit
- Definition Classes
- UIElement
- def minimumSize: Dimension
- Definition Classes
- UIElement
- def minimumSize_=(x: Dimension): Unit
- Definition Classes
- UIElement
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def onFirstSubscribe(): Unit
- Attributes
- protected
- Definition Classes
- UIElement → LazyPublisher
- def onLastUnsubscribe(): Unit
- Attributes
- protected
- Definition Classes
- UIElement → LazyPublisher
- def open(): Unit
- Definition Classes
- Window
- def owner: Window
- Definition Classes
- Window
- def pack(): TerminatesOnClose.this.type
- Definition Classes
- Window
- def preferredSize: Dimension
- Definition Classes
- UIElement
- def preferredSize_=(x: Dimension): Unit
- Definition Classes
- UIElement
- def publish(e: Event): Unit
- Definition Classes
- Publisher
- val reactions: Reactions
- Definition Classes
- Reactor
- def repaint(rect: Rectangle): Unit
- Definition Classes
- UIElement
- def repaint(): Unit
- Definition Classes
- UIElement
- def self: Any
- Definition Classes
- UIElement → Proxy
- def setLocationRelativeTo(c: UIElement): Unit
- Definition Classes
- Window
- def showing: Boolean
- Definition Classes
- UIElement
- def size: Dimension
- Definition Classes
- UIElement
- def size_=(size: Dimension): Unit
- Definition Classes
- Window
- def subscribe(listener: Reaction): Unit
- Definition Classes
- LazyPublisher → Publisher
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString: String
- Definition Classes
- Proxy → Any
- def toolkit: Toolkit
- Definition Classes
- UIElement
- def unsubscribe(listener: Reaction): Unit
- Definition Classes
- LazyPublisher → Publisher
- def validate(): Unit
- Definition Classes
- UIElement
- def visible: Boolean
- Definition Classes
- UIElement
- def visible_=(b: Boolean): Unit
- Definition Classes
- UIElement
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.