setFixedWidth

fun JComponent.setFixedWidth(width: Int)(source)

Forces this JComponent to be width pixels wide.