Swing

introprog.Swing
object Swing

A module with Swing utilities used by introprog.PixelWindow.

Attributes

Source
Swing.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Swing.type

Members list

Type members

Classlikes

class ImagePanel(val initWidth: Int, val initHeight: Int, val initBackground: Color) extends JPanel

A Swing JPanel to create drawing windows for 2D graphics.

A Swing JPanel to create drawing windows for 2D graphics.

Attributes

Source
Swing.scala
Supertypes
class JPanel
trait Accessible
class JComponent
class Container
class Component
trait Serializable
trait MenuContainer
trait ImageObserver
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def apply(callback: => Unit): Unit

Run callback asynchronously in the Swing thread.

Run callback asynchronously in the Swing thread.

Attributes

Source
Swing.scala
def await[T : ClassTag](callback: => T): T

Run callback in the Swing thread and block until completion.

Run callback in the Swing thread and block until completion.

Attributes

Source
Swing.scala
def findLookAndFeel(partOfName: String): Option[String]

Find a look and feel with a name including partOfName.

Find a look and feel with a name including partOfName.

Attributes

Source
Swing.scala
def init(): Unit

Init the Swing GUI toolkit and set platform-specific look and feel.

Init the Swing GUI toolkit and set platform-specific look and feel.

Attributes

Source
Swing.scala
def installedLookAndFeels: Vector[String]

Return a sequence of available look and feel options.

Return a sequence of available look and feel options.

Attributes

Source
Swing.scala
def isOS(partOfName: String): Boolean

Test if the current operating system name includes partOfName.

Test if the current operating system name includes partOfName.

Attributes

Source
Swing.scala