c

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.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleSwingApplication
  2. SwingApplication
  3. Reactor
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
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. 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
  2. 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
  3. 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
  4. def quit(): Unit

    Finalizes the application by calling shutdown and exits.

    Finalizes the application by calling shutdown and exits.

    Definition Classes
    SwingApplication
  5. val reactions: Reactions

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  6. def resourceFromClassloader(path: String): URL
  7. def resourceFromUserDirectory(path: String): File
  8. def shutdown(): Unit

    Called before the application is exited.

    Called before the application is exited. Override to customize.

    Definition Classes
    SwingApplication
  9. 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