Flickr Browser in JavaFX

A Flickr photo browser application implemented in JavaFX.


flickr browser screen shot
flickr browser screen shot

This application is based on top of the Media Browser implementation provided at Media Browser Tutorial and with added features to use Flickr APIs to search for public photos.

Features:

1. When a user name is typed in the text field, public photos belonged to that user will be retrieved.

2. Each time at most 15 photos will be shown on the screen. If there is more, “Prev” and “Next” buttons allow you to navigate to different pages. You can also jump to any chosen page by clicking the “Go” button.

3. Few Flickr APIs are implemented in JavaFX:

  • flickr.people.findByUsername
  • flickr.people.getPublicPhotos
  • flickr.photos.Search
  • flickr.photos.GetSizes
photo pops up when the thumbnail is clicked
photo pops up when the thumbnail is clicked

How to run it ?

1. download jar file of this application from box.net

2. download media component jar file from box.net. This jar file is also available from media browser tutorial download file.

3. obtain an API key from Flickr

4. from the command line, type

javafx -cp FlickrBrowser.jar;mediacomponent.jar  flickr.Browser  YOUR_API_KEY

note:  flickr.Browser is the main class, YOUR_API_KEY is your flickr API key.

Known issues:

1. Since each photo is retrieved by a new HTTP request, if “Prev”, “Next” or “Go” button is clicked again before all photos are retrieved, photos resulting from this additional request will also show up on the screen.

2. Error message handling is not completely implemented. No error message will be shown on the screen if error occurs.

Future Improvement:

1. Allow user to search photos based on Tag or text, etc.

Advertisements
Flickr Browser in JavaFX

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s