I'm new at Java and have never programmed before but recently a friend of mine inspired me so I'm really interested and willing to learn. I have been looking at java for 2 weeks or so now.
Anyways, my question is:
Do the mouse events have to be used with a JButton or something like a JLabel?
For example; could I just have a plain background and still handle events? i.e. if(event.getSource()==COORDINATES);
Can't really explain it to well myself lol but in simple terms, can I handle an event when the mouse enters/clicks/drags on a COORDINATION?
Thanks in advance