I love Swing and Java2D because they give me the liberty I need to create cool GUIs and special effects. That said, there are a few things I don't like much in those APIs. But the worst ever is the
Cursor class. For instance, here is how you can set the “hand” cursor on a component called “c”:
Count the number of occurences of the word “cursor” on this line.. FIVE! It's driving me nuts every time I write this line.