- Display a Facebook-like post with a user profile, content, and interaction buttons.
- React to the post with different reactions.
- Dynamically update and display reaction counts.
- Switch between reactions by clicking icons.
- Show post audience (Public, Friends).
- Java: Core programming language for application logic.
- JavaFX: Framework for building the GUI.
- FXML: XML-based language for defining the UI.
- CSS: Styling the JavaFX application.
- IntelliJ IDEA: IDE for development.
1. Download this project and download the appropriate JavaFX SDK for your operating system and unzip it to a desired location, for instance /Users/your-user/Downloads/javafx-sdk-21.
Openjfx.io2. Set JDK 21
Go to File -> Project Structure -> Project, and set the project SDK to 21. You can also set the language level to 11 or greater.
3. Create a library
Go to File -> Project Structure -> Libraries and add the JavaFX 21 SDK as a library to the project. Point to the lib folder of the JavaFX SDK.
Once the library is applied, the JavaFX classes will be recognised by the IDE, and then you can run the Text to Speech project.
4. Run the Main.java file to start the application.