To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.
I have a subclass of Window with a three buttons ("Save and Close", "Save" and "Close"). The class implements Button.ClickListener. In buttonClick() I want t display a message, and disable the buttons, when "Save and Close" or "Close" is clicked, since the saving can take a few seconds due to heavy indexing. I have tried both adding a Label below the buttons and using showNotification(). The problem is that in both cases the message is not diplayed until buttonClick() has returned, i.e. after the save, even though I make the message call before the save call.
Is there a way to display a message immediately in this context?