How to use beans [message #23605] |
Mon, 08 March 2004 21:43  |
Eclipse User |
|
|
|
Originally posted by: wang2wy.tom.com
I added a bean and two JButtons to a JFrame,I want to join JButton's
actionPerformed to bean's method,
How can i do?
Have a way to do this with Drag-and-Draw?
Thanks
|
|
|
Re: How to use beans [message #23782 is a reply to message #23605] |
Tue, 09 March 2004 10:59  |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
It's done by using events. On the JButton, bring up the popup menu,
expand the "Add Events" submenu and select actionPerformed. This will
add the event in code. And then from the code you do what you want to do
to the bean.
--
Thanks, Rich Kulp
|
|
|
Re: How to use beans [message #583870 is a reply to message #23605] |
Tue, 09 March 2004 10:59  |
Eclipse User |
|
|
|
Originally posted by: richkulp.NO.SPAM.us.ibm.com
It's done by using events. On the JButton, bring up the popup menu,
expand the "Add Events" submenu and select actionPerformed. This will
add the event in code. And then from the code you do what you want to do
to the bean.
--
Thanks, Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.19401 seconds