Skip to content

Simple JavaFX GUI app that uses Open Library API to pull book title, author name, publication date, and cover image.

Notifications You must be signed in to change notification settings

lizardcat/OpenLibraryJavaFXApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaFX Book Search App with Open Library API

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.

Features

  • 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

Screenshots & Previews

Search Interface
Search Interface

Search Results
Search Results

No Results Found
No Results

Getting Started

Prerequisites

  • JDK 17 or later
  • JavaFX SDK 21
  • Gradle

Build and Run

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

VM Options for JavaFX (IntelliJ)

--module-path /path/to/javafx-sdk/lib --add-modules javafx.controls,javafx.fxml

Tech Stack

  • Java 17+
  • JavaFX 21
  • FXML for UI
  • Open Library REST API
  • org.json for JSON parsing

Folder Structure

src/
├── main/
│   ├── java/com/example/
│   │   ├── Main.java
│   │   ├── Book.java
│   │   └── BookSearchController.java
│   └── resources/com/example/
│       └── book_search.fxml

API Reference

About

Simple JavaFX GUI app that uses Open Library API to pull book title, author name, publication date, and cover image.

Topics

Resources

Stars

Watchers

Forks

Languages