Merge pull request #28 from csmith/textpane

Fix some TextPane layout weirdness.
More TextPane tidying.

Change to using Rectangle2D.Float to avoid having to cast all
of the co-ords and dimensions to ints.

Remove a magic 1.5 in the calculations in favour of using the right
properties of the text.