c

scala.swing

MainFrame

class MainFrame extends Frame

A frame that can be used for main application windows. Shuts down the framework and quits the application when closed.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MainFrame
  2. Frame
  3. RichWindow
  4. Window
  5. RootPanel
  6. Container
  7. UIElement
  8. LazyPublisher
  9. Publisher
  10. Reactor
  11. Proxy
  12. AnyRef
  13. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MainFrame(gc: GraphicsConfiguration = null)

Type Members

  1. trait InterfaceMixin extends RichWindow.InterfaceMixin
    Definition Classes
    RichWindow

Value Members

  1. def background: Color
    Definition Classes
    UIElement
  2. def background_=(c: Color): Unit
    Definition Classes
    UIElement
  3. def bounds: Rectangle
    Definition Classes
    UIElement
  4. def bounds_=(rect: Rectangle): Unit
    Definition Classes
    Window
  5. def centerOnScreen(): Unit
    Definition Classes
    Window
  6. def close(): Unit
    Definition Classes
    Window
  7. 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.

    Definition Classes
    MainFrameWindow
  8. def componentOrientation: ComponentOrientation
    Definition Classes
    UIElement
  9. def componentOrientation_=(x: ComponentOrientation): Unit
    Definition Classes
    UIElement
  10. def contents: Seq[Component]

    At most one component.

    At most one component.

    Definition Classes
    RootPanelContainer
  11. def contents_=(c: Component): Unit
    Definition Classes
    WindowRootPanel
  12. def cursor: Cursor
    Definition Classes
    UIElement
  13. def cursor_=(c: Cursor): Unit
    Definition Classes
    UIElement
  14. 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
  15. def defaultButton: Option[Button]
    Definition Classes
    Window
  16. def defaultButton_=(b: Option[Button]): Unit
    Definition Classes
    Window
  17. def defaultButton_=(b: Button): Unit
    Definition Classes
    Window
  18. def displayable: Boolean
    Definition Classes
    UIElement
  19. def dispose(): Unit
    Definition Classes
    Window
  20. def equals(that: Any): Boolean
    Definition Classes
    Proxy → Any
  21. def font: Font
    Definition Classes
    UIElement
  22. def font_=(f: Font): Unit
    Definition Classes
    UIElement
  23. def foreground: Color
    Definition Classes
    UIElement
  24. def foreground_=(c: Color): Unit
    Definition Classes
    UIElement
  25. def hashCode(): Int
    Definition Classes
    Proxy → Any
  26. def iconImage: Image
    Definition Classes
    Frame
  27. def iconImage_=(i: Image): Unit
    Definition Classes
    Frame
  28. def iconified: Boolean
    Definition Classes
    Frame
  29. def iconify(): Unit
    Definition Classes
    Frame
  30. def ignoreRepaint: Boolean
    Definition Classes
    UIElement
  31. def ignoreRepaint_=(b: Boolean): Unit
    Definition Classes
    UIElement
  32. 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
  33. def locale: Locale
    Definition Classes
    UIElement
  34. def location: Point
    Definition Classes
    UIElement
  35. def locationOnScreen: Point
    Definition Classes
    UIElement
  36. def location_=(p: Point): Unit
    Definition Classes
    Window
  37. def maximize(): Unit
    Definition Classes
    Frame
  38. def maximized: Boolean
    Definition Classes
    Frame
  39. def maximumSize: Dimension
    Definition Classes
    UIElement
  40. def maximumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  41. def menuBar: MenuBar

    The menu bar of this frame or NoMenuBar if no menu bar is set.

    The menu bar of this frame or NoMenuBar if no menu bar is set.

    Definition Classes
    RichWindow
  42. def menuBar_=(m: MenuBar): Unit

    Set the current menu bar of this frame.

    Set the current menu bar of this frame. Pass NoMenuBar if this frame should not show a menu bar.

    Definition Classes
    RichWindow
  43. def minimumSize: Dimension
    Definition Classes
    UIElement
  44. def minimumSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  45. def open(): Unit
    Definition Classes
    Window
  46. def owner: Window
    Definition Classes
    Window
  47. def pack(): MainFrame.this.type
    Definition Classes
    Window
  48. lazy val peer: JFrame with InterfaceMixin

    The underlying Swing peer.

    The underlying Swing peer.

    Definition Classes
    FrameRichWindowWindowRootPanelUIElement
  49. def preferredSize: Dimension
    Definition Classes
    UIElement
  50. def preferredSize_=(x: Dimension): Unit
    Definition Classes
    UIElement
  51. def publish(e: Event): Unit

    Notify all registered reactions.

    Notify all registered reactions.

    Definition Classes
    Publisher
  52. val reactions: Reactions

    All reactions of this reactor.

    All reactions of this reactor.

    Definition Classes
    Reactor
  53. def repaint(rect: Rectangle): Unit
    Definition Classes
    UIElement
  54. def repaint(): Unit
    Definition Classes
    UIElement
  55. def resizable: Boolean
    Definition Classes
    RichWindow
  56. def resizable_=(b: Boolean): Unit
    Definition Classes
    RichWindow
  57. def self: java.awt.Component
    Definition Classes
    UIElement → Proxy
  58. def setLocationRelativeTo(c: UIElement): Unit
    Definition Classes
    Window
  59. def showing: Boolean
    Definition Classes
    UIElement
  60. def size: Dimension
    Definition Classes
    UIElement
  61. def size_=(size: Dimension): Unit
    Definition Classes
    Window
  62. def subscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  63. def title: String
    Definition Classes
    RichWindow
  64. def title_=(s: String): Unit
    Definition Classes
    RichWindow
  65. def toString(): String
    Definition Classes
    Proxy → Any
  66. def toolkit: Toolkit
    Definition Classes
    UIElement
  67. def uniconify(): Unit
    Definition Classes
    Frame
  68. def unmaximize(): Unit
    Definition Classes
    Frame
  69. def unsubscribe(listener: Reaction): Unit
    Definition Classes
    LazyPublisher → Publisher
  70. def validate(): Unit
    Definition Classes
    UIElement
  71. def visible: Boolean
    Definition Classes
    UIElement
  72. def visible_=(b: Boolean): Unit
    Definition Classes
    UIElement