[java-gnome-hackers] Button Event Listeners
Brought to you by:
afcowie
From: Mark H. <mh...@ti...> - 2002-08-17 15:58:36
|
hi, I've implemented event listeners for the gtk Button widget. Please take a look to make sure everything is how you would like it. There's a very basic example in examples/gtk/buttons/ButtonEvents.java The changes involved: - Creating gtk/events/ButtonEvent.java and gtk/events/ButtonListener.java (mostly copied from the mouse listener) - Writing SetListener (stored internally as a weak reference) and event handing methods in Button.java - Adding initializeEventHandler method to Button.java - Adding calls to initializeEventHandler in button constructors --=20 +----------------------------------------------+ | Mark Howard cam.ac.uk mh344@ | | http://www.tildemh.com tildemh.com mh@ | +----------------------------------------------+ |