mirror of
https://github.com/sabazadam/Se302.git
synced 2025-12-31 12:21:22 +00:00
Added JavaFX UI with TabPane navigation (5 tabs)
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.control.*?>
|
||||
<?import javafx.scene.layout.*?>
|
||||
|
||||
<BorderPane xmlns="http://javafx.com/javafx"
|
||||
xmlns:fx="http://javafx.com/fxml"
|
||||
fx:controller="org.example.se302.controller.ScheduleClassroomController"
|
||||
styleClass="content-pane">
|
||||
|
||||
<top>
|
||||
<VBox spacing="10">
|
||||
<padding>
|
||||
<Insets top="20" right="20" bottom="10" left="20"/>
|
||||
</padding>
|
||||
<Label text="Classroom Schedule View" styleClass="section-title"/>
|
||||
<HBox spacing="10" alignment="CENTER_LEFT">
|
||||
<Label text="Select Classroom:"/>
|
||||
<ComboBox fx:id="classroomComboBox" promptText="Choose a classroom..." prefWidth="200"/>
|
||||
<Button text="Show Schedule" onAction="#onShowSchedule" styleClass="primary-button"/>
|
||||
</HBox>
|
||||
</VBox>
|
||||
</top>
|
||||
|
||||
<center>
|
||||
<VBox spacing="10">
|
||||
<padding>
|
||||
<Insets top="10" right="20" bottom="20" left="20"/>
|
||||
</padding>
|
||||
<Label fx:id="selectedClassroomLabel" text="No classroom selected" styleClass="subsection-title"/>
|
||||
<TableView fx:id="scheduleTable" VBox.vgrow="ALWAYS">
|
||||
<columns>
|
||||
<TableColumn fx:id="dateColumn" text="Date" prefWidth="150"/>
|
||||
<TableColumn fx:id="timeColumn" text="Time" prefWidth="150"/>
|
||||
<TableColumn fx:id="courseColumn" text="Course" prefWidth="150"/>
|
||||
<TableColumn fx:id="studentsColumn" text="Students" prefWidth="100"/>
|
||||
<TableColumn fx:id="utilizationColumn" text="Utilization" prefWidth="100"/>
|
||||
</columns>
|
||||
<placeholder>
|
||||
<Label text="Select a classroom to view its exam schedule"/>
|
||||
</placeholder>
|
||||
</TableView>
|
||||
<Label fx:id="utilizationLabel" text="Overall Utilization: 0%"/>
|
||||
</VBox>
|
||||
</center>
|
||||
</BorderPane>
|
||||
Reference in New Issue
Block a user