Skip to main content

Pointer Pressed and Button Action Event

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
2 replies [Last post]
dorzeidman
Offline
Joined: 2011-06-30

Hello,

How can i use pointer pressed, pointer release and pointer dragged on a Button and use its ActionEvent because at the moment i cant use both.

please help me out.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dorzeidman
Offline
Joined: 2011-06-30

It works now

Thanks

vprise
Offline
Joined: 2003-11-07

If you want to override the pointer events of the button but don't want to disturb its normal behavior always make sure to call the super method as well. E.g. super.pointerReleased(x, y);