diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupView.kt b/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupView.kt index 4897a93..9262660 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupView.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupView.kt @@ -1,15 +1,56 @@ package org.hso.texturesyncclient.view.startupView -import javafx.scene.Parent +import com.jfoenix.controls.JFXButton +import com.jfoenix.controls.JFXSpinner +import com.jfoenix.controls.JFXTextField +import javafx.geometry.Insets +import javafx.geometry.Pos +import javafx.scene.control.Label +import javafx.scene.layout.Background +import javafx.scene.layout.BackgroundFill +import javafx.scene.layout.CornerRadii +import javafx.scene.paint.Color import tornadofx.* class StartupView : View() { - override val root: Parent - get() = TODO("not implemented") //To change initializer of created properties use File | Settings | File Templates. + val labelStatus = Label("Verbinden") + val spinnerStatus = JFXSpinner() + val labelServerIP = Label("Server-IP") + val tfServerIP = JFXTextField() + + val btnConnect = JFXButton("Manuell Verbinden") + + override val root = borderpane { + + center = vbox(50) { + maxWidth = 150.0 + alignment = Pos.CENTER + + add(labelStatus).apply { + labelStatus.background = Background(BackgroundFill(Color.YELLOWGREEN, CornerRadii.EMPTY, Insets.EMPTY)) + } + add(spinnerStatus) + + vbox(10){ + alignment = Pos.CENTER + + add(labelServerIP) + add(tfServerIP) + add(btnConnect) + } + + } + + style { + minWidth = 900.px + minHeight = 600.px + } + + } } \ No newline at end of file diff --git a/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupViewController.kt b/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupViewController.kt index f54ba60..51d22eb 100644 --- a/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupViewController.kt +++ b/client/src/main/kotlin/org/hso/texturesyncclient/view/startupView/StartupViewController.kt @@ -3,4 +3,7 @@ package org.hso.texturesyncclient.view.startupView import tornadofx.Controller class StartupViewController : Controller() { + + + } \ No newline at end of file