scala.swing

SimpleSwingApplication

abstract class SimpleSwingApplication extends SwingApplication

Extend this class for most simple UI applications. Clients need to implement the top method. Framework initialization is done by this class.

In order to conform to Swing's threading policy, never implement top or any additional member that created Swing components as a value unless component creation happens on the EDT (see Swing.onEDT and Swing.onEDTWait). Lazy values are okay for the same reason if they are initialized on the EDT always.

Source
SimpleSwingApplication.scala
Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. SimpleSwingApplication
  2. SwingApplication
  3. Reactor
  4. AnyRef
  5. Any
Implicitly
  1. by StringAdd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SimpleSwingApplication()

Abstract Value Members

  1. abstract def top: Frame

    A GUI application's version of the main method.

    A GUI application's version of the main method. Called by the default main method implementation provided by this class. Implement to return the top-level frame of this application.

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from SimpleSwingApplication to StringAdd[SimpleSwingApplication] performed by method StringAdd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (SimpleSwingApplication, B)

    Implicit information
    This member is added by an implicit conversion from SimpleSwingApplication to ArrowAssoc[SimpleSwingApplication] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  6. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  7. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  8. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. 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.

    Definition Classes
    Reactor
  11. def ensuring(cond: (SimpleSwingApplication) ⇒ Boolean, msg: ⇒ Any): SimpleSwingApplication

    Implicit information
    This member is added by an implicit conversion from SimpleSwingApplication to Ensuring[SimpleSwingApplication] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (SimpleSwingApplication) ⇒ Boolean): SimpleSwingApplication

    Implicit information
    This member is added by an implicit conversion from SimpleSwingApplication to Ensuring[SimpleSwingApplication] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): SimpleSwingApplication

    Implicit information
    This member is added by an implicit conversion from SimpleSwingApplication to Ensuring[SimpleSwingApplication] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): SimpleSwingApplication

    Implicit information
    This member is added by an implicit conversion from SimpleSwingApplication to Ensuring[SimpleSwingApplication] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def formatted(fmtstr: String): String

    Returns string formatted according to given format string.

    Returns string formatted according to given format string. Format strings are as for String.format (@see java.lang.String.format).

    Implicit information
    This member is added by an implicit conversion from SimpleSwingApplication to StringFormat[SimpleSwingApplication] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. 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.

    Definition Classes
    Reactor
  23. def main(args: Array[String]): Unit

    Initializes the application and runs the given program.

    Initializes the application and runs the given program.

    Definition Classes
    SwingApplication
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def quit(): Unit

    Finalizes the application by calling shutdown and exits.

    Finalizes the application by calling shutdown and exits.

    Definition Classes
    SwingApplication
  28. val reactions: Reactions

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  29. def resourceFromClassloader(path: String): URL

  30. def resourceFromUserDirectory(path: String): File

  31. def shutdown(): Unit

    Called before the application is exited.

    Called before the application is exited. Override to customize.

    Definition Classes
    SwingApplication
  32. def startup(args: Array[String]): Unit

    Calls top, packs the frame, and displays it.

    Calls top, packs the frame, and displays it.

    Definition Classes
    SimpleSwingApplicationSwingApplication
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def [B](y: B): (SimpleSwingApplication, B)

    Implicit information
    This member is added by an implicit conversion from SimpleSwingApplication to ArrowAssoc[SimpleSwingApplication] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from SwingApplication

Inherited from Reactor

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion StringAdd from SimpleSwingApplication to StringAdd[SimpleSwingApplication]

Inherited by implicit conversion StringFormat from SimpleSwingApplication to StringFormat[SimpleSwingApplication]

Inherited by implicit conversion Ensuring from SimpleSwingApplication to Ensuring[SimpleSwingApplication]

Inherited by implicit conversion ArrowAssoc from SimpleSwingApplication to ArrowAssoc[SimpleSwingApplication]

Ungrouped