Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Image button disable/enable

Marc OttoDec 12 2012 — edited Dec 12 2012
Hello

I currently have a set of images i would like to use for buttons. For each button there is a enable and disable image.

When i do a commit operation button, it will be disabled when commit is not possible and at this point the disable image should be shown on the button. Then of course the opposite should be when it is enable then i would like to show the enabled image.

Is there any way to get this done easily?

What i would like to do, is to have some kind of observer method in a bean which looks at the binding.commit.enabled and when it change execute the bean method. This method would then take care of changing the picture. But how can i accomplish this while still keeping it simple, since it might needed to be used all over the application which is splitted into several workspaces?

Thank in advance.
This post has been answered by EonvanTonder on Dec 12 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2013
Added on Dec 12 2012
1 comment
310 views