I Hate java.awt.Cursor @#!

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.

2 Responses to “I Hate java.awt.Cursor @#!”

  1. Lukman Jaji says:

    so what would u do about it…? :D

  2. Tristan Seifert says:

    You could Write A Utility method with constants like HAND, WAIT or DEFAULT, and you pass the component to the method!?