added the answerText
This commit is contained in:
parent
e55658ff2e
commit
e9d91a1986
@ -10,7 +10,7 @@ import java.io.IOException;
|
|||||||
public class App extends Application {
|
public class App extends Application {
|
||||||
@Override
|
@Override
|
||||||
public void start(Stage stage) throws IOException {
|
public void start(Stage stage) throws IOException {
|
||||||
FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource("upload.fxml"));
|
FXMLLoader fxmlLoader = new FXMLLoader(App.class.getResource("answerText.fxml"));
|
||||||
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
|
Scene scene = new Scene(fxmlLoader.load(), 320, 240);
|
||||||
stage.setTitle("Question Catalog");
|
stage.setTitle("Question Catalog");
|
||||||
stage.setScene(scene);
|
stage.setScene(scene);
|
||||||
|
|||||||
@ -0,0 +1,4 @@
|
|||||||
|
package at.ionas999.questioncatalog.controller;
|
||||||
|
|
||||||
|
public class AnswerTextController {
|
||||||
|
}
|
||||||
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
|
||||||
|
<?import java.lang.*?>
|
||||||
|
<?import java.util.*?>
|
||||||
|
<?import javafx.scene.*?>
|
||||||
|
<?import javafx.scene.control.*?>
|
||||||
|
<?import javafx.scene.layout.*?>
|
||||||
|
|
||||||
|
<AnchorPane xmlns="http://javafx.com/javafx"
|
||||||
|
xmlns:fx="http://javafx.com/fxml"
|
||||||
|
prefWidth="600.0" prefHeight="400.0"
|
||||||
|
fx:controller="at.ionas999.questioncatalog.controller.AnswerTextController">
|
||||||
|
<children>
|
||||||
|
<VBox spacing="20" alignment="CENTER">
|
||||||
|
<Label text="Here goes your question" style="-fx-font-size: 18;"/>
|
||||||
|
<HBox alignment="CENTER">
|
||||||
|
<TextArea promptText="Type your answer here..." prefHeight="100.0" prefWidth="300.0"/>
|
||||||
|
</HBox>
|
||||||
|
<HBox spacing="10" alignment="CENTER">
|
||||||
|
<Button text="Skip"/>
|
||||||
|
</HBox>
|
||||||
|
</VBox>
|
||||||
|
</children>
|
||||||
|
</AnchorPane>
|
||||||
Loading…
Reference in New Issue
Block a user