size

Prefers an exact square size, while still allowing the constraints the parent offers to override it.

Return

this modifier with the preferred size declared on it.


context(scope: ConstrainedScope)
fun SwingModifier.size(width: Int, height: Int): SwingModifier

Prefers an exact width by height, while still allowing the constraints the parent offers to override either extent.

Return

this modifier with the preferred size declared on it.