How to set action property of JButton [message #86594] |
Mon, 11 April 2005 10:05  |
Eclipse User |
|
|
|
I hope this isn't too stupid a question but can anyone tell me how to set
the
action property of a JButton? I can't figure out how to use the dialog that
pops up. Basically I want to create an inner class that extends
AbstractAction.
It should use the text and icon properties I set in the constructor and
leave a TODO
in the actionPerformed method. Any idea how to do this? Thanks.
Steve Buroff
P.S. I did look in the VE help but I couldn't find anything.
|
|
|
|
Re: How to set action property of JButton [message #86649 is a reply to message #86638] |
Mon, 11 April 2005 11:30  |
Eclipse User |
|
|
|
"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:d3e37q$1qp$1@news.eclipse.org...
> We currently don't support anonymous inner classes for actions. Only
> static inner classes or external classes. Though, this does look like
> a good pattern. Could you please open a defect for this?
Done. Bug id 90999.
Steve
>
> Steven Buroff wrote:
>> I hope this isn't too stupid a question but can anyone tell me how to set
>> the
>> action property of a JButton? I can't figure out how to use the dialog
>> that
>> pops up. Basically I want to create an inner class that extends
>> AbstractAction.
>> It should use the text and icon properties I set in the constructor and
>> leave a TODO
>> in the actionPerformed method. Any idea how to do this? Thanks.
>>
>> Steve Buroff
>>
>> P.S. I did look in the VE help but I couldn't find anything.
>
> --
> Thanks,
> Rich Kulp
|
|
|
Re: How to set action property of JButton [message #607109 is a reply to message #86594] |
Mon, 11 April 2005 10:51  |
Eclipse User |
|
|
|
Originally posted by: richkulp.us.NO_SPAM.ibm.com
We currently don't support anonymous inner classes for actions. Only
static inner classes or external classes. Though, this does look like
a good pattern. Could you please open a defect for this?
Steven Buroff wrote:
> I hope this isn't too stupid a question but can anyone tell me how to set
> the
> action property of a JButton? I can't figure out how to use the dialog that
> pops up. Basically I want to create an inner class that extends
> AbstractAction.
> It should use the text and icon properties I set in the constructor and
> leave a TODO
> in the actionPerformed method. Any idea how to do this? Thanks.
>
> Steve Buroff
>
> P.S. I did look in the VE help but I couldn't find anything.
>
>
--
Thanks,
Rich Kulp
|
|
|
Re: How to set action property of JButton [message #607110 is a reply to message #86638] |
Mon, 11 April 2005 11:30  |
Eclipse User |
|
|
|
"Rich Kulp" <richkulp@us.NO_SPAM.ibm.com> wrote in message
news:d3e37q$1qp$1@news.eclipse.org...
> We currently don't support anonymous inner classes for actions. Only
> static inner classes or external classes. Though, this does look like
> a good pattern. Could you please open a defect for this?
Done. Bug id 90999.
Steve
>
> Steven Buroff wrote:
>> I hope this isn't too stupid a question but can anyone tell me how to set
>> the
>> action property of a JButton? I can't figure out how to use the dialog
>> that
>> pops up. Basically I want to create an inner class that extends
>> AbstractAction.
>> It should use the text and icon properties I set in the constructor and
>> leave a TODO
>> in the actionPerformed method. Any idea how to do this? Thanks.
>>
>> Steve Buroff
>>
>> P.S. I did look in the VE help but I couldn't find anything.
>
> --
> Thanks,
> Rich Kulp
|
|
|
Powered by
FUDForum. Page generated in 0.03703 seconds