Swing

object Swing

Helpers for this package.

Helpers for this package.

class Object
trait Matchable
class Any

Type members

Classlikes

sealed abstract class Embossing
case object EmptyIcon extends Icon

The empty icon. Use this icon instead of null to indicate that you don't want an icon.

The empty icon. Use this icon instead of null to indicate that you don't want an icon.

case object Lowered extends Embossing
case object Raised extends Embossing

Value members

Concrete methods

final def ActionListener(f: ActionEvent => Unit): ActionListener
def BeveledBorder(kind: Embossing): Border
def BeveledBorder(kind: Embossing, highlight: Color, shadow: Color): Border
def BeveledBorder(kind: Embossing, highlightOuter: Color, highlightInner: Color, shadowOuter: Color, shadowInner: Color): Border
def Box(min: Dimension, pref: Dimension, max: Dimension): Component
final def ChangeListener(f: ChangeEvent => Unit): ChangeListener
def CompoundBorder(outside: Border, inside: Border): CompoundBorder
def EmptyBorder: Border
def EmptyBorder(weight: Int): Border
def EmptyBorder(top: Int, left: Int, bottom: Int, right: Int): Border
def EtchedBorder: Border
def EtchedBorder(kind: Embossing): Border
def EtchedBorder(kind: Embossing, highlight: Color, shadow: Color): Border
def HStrut(width: Int): Component
def Icon(image: Image): ImageIcon
def Icon(filename: String): ImageIcon
def Icon(url: URL): ImageIcon
def LineBorder(c: Color): Border
def LineBorder(c: Color, weight: Int): Border
def MatteBorder(top: Int, left: Int, bottom: Int, right: Int, color: Color): MatteBorder
def MatteBorder(top: Int, left: Int, bottom: Int, right: Int, icon: Icon): MatteBorder
@inline
final def Runnable(@inline block: => Unit): Runnable
def TitledBorder(border: Border, title: String): TitledBorder
def VStrut(height: Int): Component
@inline
final def onEDT(op: => Unit): Unit

Schedule the given code to be executed on the Swing event dispatching thread (EDT). Returns immediately.

Schedule the given code to be executed on the Swing event dispatching thread (EDT). Returns immediately.

@inline
final def onEDTWait(op: => Unit): Unit

Schedule the given code to be executed on the Swing event dispatching thread (EDT). Blocks until after the code has been run.

Schedule the given code to be executed on the Swing event dispatching thread (EDT). Blocks until after the code has been run.

def unwrapIcon(icon: Icon): Icon
def wrapIcon(icon: Icon): Icon

Implicits

Implicits

implicit def pair2Dimension(p: (Int, Int)): Dimension
implicit def pair2Point(p: (Int, Int)): Point
implicit def pair2Point(p: (Int, Int, Int, Int)): Rectangle