Skip to main content



      Home
Home » Archived » Visual Editor (VE) » How to set action property of JButton
How to set action property of JButton [message #86594] Mon, 11 April 2005 10:05 Go to next message
Eclipse UserFriend
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 #86638 is a reply to message #86594] Mon, 11 April 2005 10:51 Go to previous messageGo to next message
Eclipse UserFriend
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 #86649 is a reply to message #86638] Mon, 11 April 2005 11:30 Go to previous message
Eclipse UserFriend
"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 Go to previous message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
"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
Previous Topic:How to set action property of JButton
Next Topic:Changing of the initializing parameter in the property sheet
Goto Forum:
  


Current Time: Wed Apr 16 13:34:59 EDT 2025

Powered by FUDForum. Page generated in 0.03703 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top