Den 14.06.2011 22:37, skrev Greg Brown:
You should call:

   tabData.setText("New text for tab");
   TabPane.setTabData(component, tabData);

That will fire the appropriate event.

That's the first thing I tried. It doesn't work because TabPane#setTabData will only call the listeners if previousTabData != tabData. I don't change the TabData (ButtonData) object, I just change the text property.

I can ofcourse create a brand new ButtonData object, but that doesn't feel right. What do you think?


FYI, the fact that you can call the listeners yourself is a bug. The contents 
of the listener list are not supposed to be visible.  :-)

OK :)

Reply via email to