Hi,
I'm working on something for school, so please don't give me too much
more than I am asking :) I still want this to be a challenge.
I need to add a mouseListener to all off the elements of a awt.swing
form.
I can't get it to compile awt.event.mouselistener can't be
instantiated, so says netbeans.
any help/pointers? I'm quite new to java but not to programming.
for
compArray[n].addMouseListener(new MouseAdapter()
{
public void mousePressed(MouseEvent e) {
if (e.getButton() == 3)
// do stuff
}
});
end for
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Java
EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en
-~----------~----~----~----~------~----~------~--~---