class DeclarativeStylesCBView : View("Declarative Syles") { val data = listOf("One", "Two", "Three") override val root = vbox { combobox( values=data ) { cellFormat { text = it background = Background(BackgroundFill(Color.SADDLEBROWN, CornerRadii.EMPTY, Insets(0.0))) textFill = Color.BEIGE } prefWidth = 200.0 } alignment = Pos.CENTER prefWidth = 480.0 prefHeight = 320.0 } } class DeclarativeStylesCB : App(DeclarativeStylesCBView::class) fun main(args: Array) { launch(args) }