Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Changing the image of a Draw2D's button
Changing the image of a Draw2D's button [message #207660] Thu, 19 January 2006 23:45
Eclipse UserFriend
Originally posted by: pablo.carbajal.solcorp.com

I would like to know how can I change the image of a button when the
user's performs an action on it.

What I'm doing is creating a button,

Button button = new Button(<my-image>);

then adding an action listener and when #actionPerformed(ActionEvent) is
called, I would like to change the button's image, however I don't see any
method that allows me to do this.

I've tried adding the image as an ImageFigure through #add(Figure) and
then removing the all image and adding the new image but the image is not
shown up.

Thanks foryou help,
Pablo
Previous Topic:I can't run the schema editor example!
Next Topic:Class Not found Exception
Goto Forum:
  


Current Time: Sun Feb 09 19:23:27 GMT 2025

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

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

Back to the top