This is a simple JavaFX desktop application that allows users to search for books by title using the Open Library API. The app displays results one at a time, including the book title, author(s), first publish year, and cover image. Users can navigate through results using Previous and Next buttons.
- Search books by title
- View:
- Book title
- Cover image
- Author(s)
- First publish year
- Paginate through results
- Graceful handling of missing data
- Responsive and clean FXML-based UI
- JDK 17 or later
- JavaFX SDK 21
- Gradle
Clone the repository and run:
./gradlew run
If you're running the .jar
directly, include VM options:
java --module-path /path/to/javafx-sdk/lib --add-modules javafx.controls,javafx.fxml -jar build/libs/openlibrary-app.jar
--module-path /path/to/javafx-sdk/lib --add-modules javafx.controls,javafx.fxml
- Java 17+
- JavaFX 21
- FXML for UI
- Open Library REST API
- org.json for JSON parsing
src/
├── main/
│ ├── java/com/example/
│ │ ├── Main.java
│ │ ├── Book.java
│ │ └── BookSearchController.java
│ └── resources/com/example/
│ └── book_search.fxml