Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val yachtName = object : Label() {
- init {
- width = 160.0
- text = yacht.name
- font = Font.font("Franklin Gothic Medium", 20.0)
- setMargin(this, Insets(5.0, 15.0, 0.0, 15.0))
- }
- }
- children.add(yachtName)
- val yachtPrice = object : Label() {
- init {
- width = 180.0
- text = "Цена: " + yacht.price.toString()
- font = Font.font("Franklin Gothic Medium", 20.0)
- setMargin(this, Insets(5.0, 15.0, 0.0, 10.0))
- }
- }
- children.add(yachtPrice)
- val bucketButton = object : Button() {
- init {
- id = "buyButton"
- prefWidth = 25.0
- alignment = Pos.CENTER_RIGHT
- prefHeight = 25.0
- text = "$"
- setMargin(this, Insets(5.0, 5.0, 5.0, 5.0))
- }
- }
- val infoButton = object : Button() {
- init {
- id = "descriptionButton"
- layoutX = 365.0
- alignment = Pos.CENTER_RIGHT
- prefWidth = 25.0
- prefHeight = 25.0
- text = "D"
- setMargin(this, Insets(5.0, 5.0, 5.0, 5.0))
- }
- }
- children.addAll(bucketButton, infoButton)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement