[Java2D] How would I go for making buttons?

Hello all.

I’ve been looking everywhere for resources on how to create your own GUI system, and I can’t find anything good or helpful, nor can I find anything I can understand.

I’m working on a title menu for my game, and I need help writing a decent button class that can detect the mouse’s coordinates.

I have mouse input working, but I am having issues simply detecting an area of the screen. I have a point called msl (mouse location) that is controlled by my Input class. I then check for the point by doing something like this: [icode]if (msl == new Point(12, 12)) hover = true;[/icode]. That would only detect one pixel, how would I go for detecting a large area on the screen, similar to what I’d do with an array?

Sorry if this question sounds dumb or if my English isn’t spot on, but I really want help with this. I’m tired of text-based GUIs :(.

-Jev.