Gallery API Project

Description:

This project was my first encounter with APIs. I first started by creating a scene in JavaFX. After creating and building the scene, I made an array to correspond with the indices of the boxes I wanted the images to go to.

 

When the user presses "Get Images", the program sends a request out to the iTunes API using the information that was placed into the search bar by the user. It takes all of the results (which are image links), filters out the duplicates, builds them into images, and places them in an ArrayList. Using threads, I created a progress bar to follow this process and I made sure that the search bar continues to work during this process. 20 of the images from the ArrayList are moved into the array at this point. If there aren't 21 total images or the search is broken in some way, the program throws back an error.

 

If the user presses "play", a random image every 2 seconds is switched out from the array. A random image is also chosen from the hidden ArrayList to switch in. This process keeps repeating until the user presses "pause".

Images and Videos:

image

Description

This project is a showcase of my ability to take a single API and turn it into a useful program. The program takes the input of a search term for movies, shows, songs, ect. It then uses the results to print thumbnails and eventually rotate the thumbnails around.