Eventhandler of disable button is running on custom dialog

I created the urcap in which the custom dialog is shown to input quantity of product, and this urcap is being operated for our production.
But when there is the disable button and it is clicked, “mousepressed” eventhandler runs and dialog is closed.
(The apple image is sample. Our company products electric devices. ^^;)

Is there the solution about this.


Hi @fujikit,

Have you tried with an ActionListener, as suggested here?

Ebbe

1 Like

Hi @Ebbe

Thank you for your replying.
But I cannot implemented ActionListner and I don’t know the reason.

Instead of, I insert “return” if button is disable.

1 Like

I saw you posted the sample, what was the solution @fujikit?

This is solved.
Thank you