about listener in SourceListItem

1 view
Skip to first unread message

encaputxat

unread,
Jun 17, 2010, 1:32:31 PM6/17/10
to Mac Widgets for Java
Hi again, im still working with mac widgets ;) (remember im very
novice with java yet ^^')

Why sourceListItem doesn't have a actionListener like a button, I need
to load a JTable with diferents models, every model is related to a
sourceItemList. With actionListener seems easy


infoButton.addActionListener(EventHandler.create(ActionListener.class,
ppc, "showInfo")); //ppc is a controller class


I've saw addPropertyChangeListener but I don't know how to use this.
Can someone write a simple implementation with a new dialog for
example?

thanx for support

Ken Orr

unread,
Jun 17, 2010, 2:16:53 PM6/17/10
to Mac Widgets for Java
You can react to selection events using a SourceListSelectionListener:

http://exploding-
pixels.com/google_code/javadoc_0.9.5/com/explodingpixels/macwidgets/
SourceListSelectionListener.html

Is this what you're looking for?

-Ken

encaputxat

unread,
Jun 17, 2010, 2:01:23 PM6/17/10
to Mac Widgets for Java
OMG im sorry, big mistake. The listener is in SourceList, of course.
Reply all
Reply to author
Forward
0 new messages