Day 2: Better Integration with Full Tilt Poker

Today I made my poker stats app automatically detect if Full Tilt Poker is installed. If so, it reads the location of the hand history files from Full Tilt Poker’s own preferences.

This was somewhat tricky. OS X Application Preferences are stored in a binary format. Although there exists a Java API to read an application’s own preferences, there seems to be no Java API to read other application’s preferences.

Luckily the Quaqua Look & Feel open source library has a class to help with this. It took some tinkering but the results are good. Now there is a good chance that first-time users will have no configuration to do. Immediately upon starting my poker app for the first time, their hand history files will be magically located and read, and attractive and meaningful graphs will appear in front of their eyes.