A desktop banking application built with Java and JavaFX that simulates essential banking features.
- Account management (open new accounts)
- Transaction processing (deposits and withdrawals)
- Account details display
- Transaction history tracking
- Multiple account types (Savings, Credit)
- JavaFX for the user interface
- Object-oriented design with inheritance and polymorphism
- Exception handling for input validation
- Data storage using ArrayLists
- Static variables for account number generation
src/
- Source code directorycom.smartbank
- Main packagemodel/
- Data models and business logiccontroller/
- Application controllersview/
- FXML and CSS filesutil/
- Utility classes
SmartBankApp.java
- Main application class
- Java JDK 11 or higher
- Gradle 7.0 or higher (or use the included Gradle wrapper)
The project uses Gradle as its build system. You can build the application using the following commands:
# On macOS/Linux
./gradlew build
# On Windows
gradlew.bat build
gradle build
You can run the application directly using Gradle:
# On macOS/Linux
./gradlew run
# On Windows
gradlew.bat run
gradle run
After building, you can run the generated JAR file:
java -jar build/libs/simple-banking-app.jar
- The application uses JavaFX 21.0.2
- Source compatibility is set to Java 11
- The main class is
com.smartbank.SmartBankApp
- If you encounter JavaFX related errors, ensure your Java installation includes JavaFX or that the JavaFX modules are correctly specified in the build.gradle file
- For logging output, the application uses Java's built-in logging with a custom format
- Check the console output for any error messages if the application fails to start