Is there a way to prevent setEnabled(false) from changing the opacity of a button? I can't seem to find a workaround. Thanks.
setEnabled has no direct effect on opacity. A button can choose to draw itself differently when it's disabled, and the standard look+feel does so. But you can write your own custom button that ignores it if you want.