This is a Graphical User Interface (GUI) based calendar application for the month of July in the year 2024, built using Java and JavaFX. The application allows users to view, schedule, shift, set day-offs, and delete events. It also features month and week views of the calendar.
-
Clone the Repository
-
Build the Project
- Use your preferred Java IDE (e.g., IntelliJ IDEA) to open the project and build it.
- Ensure that JavaFX is set up correctly in your IDE.
-
Download and Extract the Zip File
- Download the zip file from the repository and extract its contents into a folder.
-
Download Apache Maven
- Download Apache Maven from here.
-
Add New System Variable for Maven
- Add a new system variable named
MAVEN_HOME
. - Set the variable value to the path of the
<apache-maven-3.9.8>
folder that was downloaded.
- Add a new system variable named
-
Add Maven Bin to Path
- Add the
<apache-maven-3.9.8 bin>
folder to your system'sPath
.
- Add the
-
Confirm Path Configuration
- Click "OK" to save the changes.
-
Verify Maven Configuration
- Open Command Prompt.
- Run the command:
mvn --version
. - If Maven is configured correctly, it should display the Apache Maven version.
-
Navigate to Project Folder
- Open the extracted folder and navigate to the project folder.
-
Open Command Prompt in Project Folder
- Open Command Prompt in the project folder by clicking on the path address, typing
cmd
, and pressing Enter.
- Open Command Prompt in the project folder by clicking on the path address, typing
-
Run the Application
- In the command prompt, run the command:
mvn javafx:run
. - This will start the GUI application.
- In the command prompt, run the command:
-
Run the Application
- Run the
Main
class located insrc/main/java/com/example/cld/Main.java
to start the application. The welcome screen will display the calendar for July 2024.
- Run the
-
Viewing a Day's Schedule
- Click on any date to view the events scheduled for that day.
-
Adding an Event
- Click the "Add Event" button and fill out the form to schedule a new event.
-
Switching Calendar Views
- Use the "Month" and "Week" buttons to toggle between month and week views.
-
Viewing Event Details
- Click on an event in the schedule to view its details in a new window.
-
Setting a Day Off
- Select a day to set as a day off.
-
Editing, Shifting or Deleting an Event
- Select an event and use the "Edit" or "Delete" buttons to modify or remove the event.
- src
- main
- java
- com.example.cld
AddEventController.java
DateNameMain.java
Day.java
DeleteEventController.java
Event.java
Main.java
MainController.java
Scheduler.java
SetDayOffController.java
ShiftEventController.java
Time.java
ViewMonthController.java
ViewWeekController.java
- com.example.cld
- resources
- com.example.cld
- FXML
AddEvent.fxml
DeleteEvent.fxml
Main.fxml
SetDayOff.fxml
ShiftEvent.fxml
ViewMonth.fxml
ViewWeek.fxml
- Icons: Contains icon files.
- Styles: Contains CSS stylesheets.
- TextFiles
EventFile.txt
- FXML
style.css
style_add_event.css
style_date_btm.css
style_delete_event.css
style_shift_event.css
- com.example.cld
- java
- main
- Java 22
- JavaFX 22
- An IDE with JavaFX support