Mike-s-Mahjong is a project mainly written in Java, it's free.
A Java implementation of Mahjong (the real game, not the solitaire nonsense)