created GUI
This commit is contained in:
@@ -3,12 +3,11 @@
|
||||
*/
|
||||
package ch.zhaw.projekt2.turnierverwaltung;
|
||||
|
||||
public class App {
|
||||
public String getGreeting() {
|
||||
return "Hello World!";
|
||||
}
|
||||
import ch.zhaw.projekt2.turnierverwaltung.main.MainWindow;
|
||||
import javafx.application.Application;
|
||||
|
||||
public class App {
|
||||
public static void main(String[] args) {
|
||||
System.out.println(new App().getGreeting());
|
||||
Application.launch(MainWindow.class,args);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package ch.zhaw.projekt2.turnierverwaltung.main;
|
||||
|
||||
import javafx.application.Application;
|
||||
import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.layout.Pane;
|
||||
import javafx.stage.Stage;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public class MainWindow extends Application {
|
||||
@Override
|
||||
public void start(Stage primaryStage) throws Exception {
|
||||
FXMLLoader loader = new FXMLLoader(getClass().getResource("mainWindow.fxml"));
|
||||
Pane pane = loader.load();
|
||||
Scene scene = new Scene(pane);
|
||||
primaryStage.setScene(scene);
|
||||
primaryStage.setFullScreen(true);
|
||||
primaryStage.setResizable(false);
|
||||
primaryStage.show();
|
||||
}
|
||||
|
||||
//Can be used to Open new Scene in same Stage.
|
||||
//This way possible to later give object to Controller
|
||||
public void startParticipand(Stage stage) {
|
||||
FXMLLoader loader = new FXMLLoader(getClass().getResource("..\\participandAddFormular\\participandFormular.fxml"));
|
||||
try {
|
||||
Pane pane = loader.load();
|
||||
Scene scene = new Scene(pane);
|
||||
stage.setScene(scene);
|
||||
stage.setFullScreen(true);
|
||||
stage.setResizable(false);
|
||||
stage.show();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
package ch.zhaw.projekt2.turnierverwaltung.main;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.ChoiceBox;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.ListView;
|
||||
import javafx.scene.control.MenuItem;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.layout.VBox;
|
||||
|
||||
public class MainWindowController {
|
||||
|
||||
@FXML
|
||||
private MenuItem closeBtn;
|
||||
|
||||
@FXML
|
||||
private Button createBtn;
|
||||
|
||||
@FXML
|
||||
private GridPane grid;
|
||||
|
||||
@FXML
|
||||
private VBox mainContainer;
|
||||
|
||||
@FXML
|
||||
private Label mainTitle;
|
||||
|
||||
@FXML
|
||||
private ChoiceBox<?> modusChoiceBox;
|
||||
|
||||
@FXML
|
||||
private Label newTournamentFormularTitle;
|
||||
|
||||
@FXML
|
||||
private Button openBtn;
|
||||
|
||||
@FXML
|
||||
private MenuItem setLan;
|
||||
|
||||
@FXML
|
||||
private Label tournierListTitle;
|
||||
|
||||
@FXML
|
||||
private ListView<?> tournierListView;
|
||||
|
||||
@FXML
|
||||
private Label tournierModLabel;
|
||||
|
||||
@FXML
|
||||
private Label turnierNameLabel;
|
||||
|
||||
@FXML
|
||||
void closeApplication(ActionEvent event) {
|
||||
|
||||
}
|
||||
|
||||
@FXML
|
||||
void createTournament(ActionEvent event) {
|
||||
|
||||
}
|
||||
|
||||
@FXML
|
||||
void openTournier(ActionEvent event) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
+97
@@ -0,0 +1,97 @@
|
||||
package ch.zhaw.projekt2.turnierverwaltung.participandAddFormular;
|
||||
|
||||
import javafx.event.ActionEvent;
|
||||
import javafx.fxml.FXML;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.ListView;
|
||||
import javafx.scene.control.MenuItem;
|
||||
import javafx.scene.control.TextField;
|
||||
import javafx.scene.input.MouseEvent;
|
||||
import javafx.scene.layout.GridPane;
|
||||
import javafx.scene.layout.VBox;
|
||||
|
||||
public class participantFormularController {
|
||||
|
||||
@FXML
|
||||
private Button addBtn;
|
||||
|
||||
@FXML
|
||||
private Label birthDateLabel;
|
||||
|
||||
@FXML
|
||||
private TextField birthDateTextField;
|
||||
|
||||
@FXML
|
||||
private VBox changeBtn;
|
||||
|
||||
@FXML
|
||||
private MenuItem closeBtn;
|
||||
|
||||
@FXML
|
||||
private Label firstNameLabel;
|
||||
|
||||
@FXML
|
||||
private TextField firstNameTextField;
|
||||
|
||||
@FXML
|
||||
private GridPane grid;
|
||||
|
||||
@FXML
|
||||
private VBox mainContainer;
|
||||
|
||||
@FXML
|
||||
private Label mainTitle;
|
||||
|
||||
@FXML
|
||||
private Label newParticipantFormularTitle;
|
||||
|
||||
@FXML
|
||||
private Button openBtn;
|
||||
|
||||
@FXML
|
||||
private Label participantListTitle;
|
||||
|
||||
@FXML
|
||||
private ListView<?> participantListView;
|
||||
|
||||
@FXML
|
||||
private Label participantNameLabel;
|
||||
|
||||
@FXML
|
||||
private TextField participantNameTextField;
|
||||
|
||||
@FXML
|
||||
private Label phoneNumberLabel;
|
||||
|
||||
@FXML
|
||||
private TextField phoneNumberTextField;
|
||||
|
||||
@FXML
|
||||
private Button saveBtn;
|
||||
|
||||
@FXML
|
||||
private MenuItem setLan;
|
||||
|
||||
@FXML
|
||||
void addParticipant(ActionEvent event) {
|
||||
|
||||
}
|
||||
|
||||
@FXML
|
||||
void changeParticipant(MouseEvent event) {
|
||||
|
||||
}
|
||||
|
||||
@FXML
|
||||
void closeApplication(ActionEvent event) {
|
||||
|
||||
}
|
||||
|
||||
@FXML
|
||||
void save(ActionEvent event) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package ch.zhaw.projekt2.turnierverwaltung.tournamentList;
|
||||
|
||||
public class tournamentListController {
|
||||
}
|
||||
Reference in New Issue
Block a user