Check out the Canvas
class. It allows you to draw images programatically.
This way you could replicate the fretboard with an x-number of frets and strings and of course the positions of the chords related to the fretboard.
I'd imagine you make a draw function for the fretboard and a draw function for different types of chords.
Have fun!