Wasting my time… Writing on a blog.

My page of ramblings

Java and its wonderful graphics class March 16, 2009

Filed under: Uncategorized — jordoex @ 2:22 pm
Tags: , ,

I could probably implement an entire windowing system using just java Graphics2D primitives.  They’re so useful, probably one of the best things designed right inside a language.

However, word wrap is a fairly annoying thing, but at least I found a code snippet that outlines it better than my original idea here.  It’s kinda ugly, but still not nearly as ugly as what you have to hack with c strings.

Here’s my slightly different implementation; it’s still pretty much the same, and i’m still gonna tweak it a bit more.  I’m just glad it works.
(more…)