ComponentInParallel

protected class ComponentInParallel(comp: Component, sizes: Option[Sizes], align: Alignment)

Wraps a GUI component so that it may appear in a parallel group.

See also:

javax.swing.GroupLayout.ParallelGroup

trait InGroup[ParallelGroup]
class Object
trait Matchable
class Any

Value members

Concrete methods

def sized(min: Size, pref: Size, max: Size): InGroup[ParallelGroup]

Specifies size constraints for this component.

Specifies size constraints for this component.

Value parameters:
max

maximum size >= 0 (or one of UseDefault, UsePreferred and Infinite)

min

minimum size >= 0 (or one of UseDefault, UsePreferred and Infinite)

pref

preferred size >= 0 (or one of UseDefault, UsePreferred and Infinite)

Inherited methods

def fixedToDefaultSize: InGroup[ParallelGroup]

Fixes the size of this component to its default size.

Fixes the size of this component to its default size.

Inherited from:
SizeHelpers
def fullyResizable(pref: Size): InGroup[ParallelGroup]

Forces this component to be resizable (useful e.g. for buttons). Its minimum size is set to 0 pixels.

Forces this component to be resizable (useful e.g. for buttons). Its minimum size is set to 0 pixels.

Inherited from:
SizeHelpers
def resizable(min: Size, pref: Size, max: Size): InGroup[ParallelGroup]

Forces this component to be resizable (useful e.g. for buttons). Its minimum size is set to its default size.

Forces this component to be resizable (useful e.g. for buttons). Its minimum size is set to its default size.

Inherited from:
SizeHelpers
def sized(size: Size): InGroup[ParallelGroup]

Fixes the size of this component to the specified size.

Fixes the size of this component to the specified size.

Value parameters:
size

the desired size in pixels

Inherited from:
SizeHelpers