scala.swing

class Label

[source: scala/swing/Label.scala]

class Label(text0 : java.lang.String, icon0 : javax.swing.Icon, align : Value)
extends Component
A label component that display either a text, an icon, or both.
See Also
javax.swing.JLabel
Additional Constructor Summary
def this : Label
def this (s : java.lang.String) : Label
Value Summary
override lazy val peer : javax.swing.JLabel
The underlying Swing peer.
Values and Variables inherited from Component
initP, Mouse
Values and Variables inherited from Publisher
listeners
Values and Variables inherited from Reactor
reactions
Method Summary
def disabledIcon : javax.swing.Icon
def disabledIcon_= (icon : javax.swing.Icon) : Unit
def displayedMnemonicIndex : Int
def displayedMnemonicIndex_= (index : Int) : Unit
def horizontalAlignment : Value
def horizontalAlignment_= (x : Value) : Unit
def horizontalTextPosition : Value
def horizontalTextPosition_= (x : Value) : Unit
def icon : javax.swing.Icon
def iconTextGap : Int
def iconTextGap_= (gap : Int) : Unit
def icon_= (i : javax.swing.Icon) : Unit
def text : java.lang.String
def text_= (s : java.lang.String) : Unit
def verticalAlignment : Value
def verticalAlignment_= (x : Value) : Unit
def verticalTextPosition : Value
def verticalTextPosition_= (x : Value) : Unit
def xAlignment : Value
The alignment of the label's contents relative to its bounding box.
def xAlignment_= (x : Value) : Unit
def yAlignment : Value
def yAlignment_= (x : Value) : Unit
Methods inherited from Component
xLayoutAlignment, xLayoutAlignment_=, yLayoutAlignment, yLayoutAlignment_=, border, border_=, opaque, opaque_=, enabled, enabled_=, tooltip, tooltip_=, inputVerifier, inputVerifier_=, focusable, focusable_=, requestFocus, requestFocusInWindow, hasFocus, onFirstSubscribe, revalidate, paintComponent, paintBorder, paintChildren, paint, toString
Methods inherited from UIElement
self, foreground, foreground_=, background, background_=, minimumSize, minimumSize_=, maximumSize, maximumSize_=, preferredSize, preferredSize_=, preferredSize_=, font, font_=, locationOnScreen, location, bounds, size, size_=, size_=, locale, toolkit, cursor, cursor_=, visible, visible_=, showing, displayable, repaint, repaint, ignoreRepaint, ignoreRepaint_=, onLastUnsubscribe
Methods inherited from scala.swing.LazyPublisher
scala.swing.LazyPublisher.subscribe, scala.swing.LazyPublisher.unsubscribe
Methods inherited from Publisher
publish
Methods inherited from Reactor
listenTo, deafTo
Methods inherited from Proxy
hashCode, equals
Methods inherited from AnyRef
getClass, clone, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Additional Constructor Details
def this : Label

def this(s : java.lang.String) : Label

Value Details
override lazy val peer : javax.swing.JLabel
The underlying Swing peer.
Overrides
Component.peer

Method Details
def text : java.lang.String

def text_=(s : java.lang.String) : Unit

def icon : javax.swing.Icon

def icon_=(i : javax.swing.Icon) : Unit

def xAlignment : Value
The alignment of the label's contents relative to its bounding box.

def xAlignment_=(x : Value) : Unit

def yAlignment : Value

def yAlignment_=(x : Value) : Unit

def horizontalAlignment : Value
See Also
javax.swing.JLabel#getHorizontalAlignment()

def horizontalAlignment_=(x : Value) : Unit
See Also
javax.swing.JLabel#setHorizontalAlignment()

def verticalAlignment : Value

def verticalAlignment_=(x : Value) : Unit

def horizontalTextPosition : Value

def horizontalTextPosition_=(x : Value) : Unit

def verticalTextPosition : Value

def verticalTextPosition_=(x : Value) : Unit

def disabledIcon : javax.swing.Icon

def disabledIcon_=(icon : javax.swing.Icon) : Unit

def iconTextGap : Int

def iconTextGap_=(gap : Int) : Unit

def displayedMnemonicIndex : Int

def displayedMnemonicIndex_=(index : Int) : Unit