I just checked and this is all we do to update the title and it works
fine, but notice we construct a new object every time:
private void updateTabName() {
ButtonData bd = new ButtonData(type.getIcon(), getTabName());
TabPane.setTabData(this, bd);
}
~Roger
On 9/23/12 8:09 PM, Roger Whitcomb wrote:
Did you call it with the same object or did you make a new object (for
setTabData)? It should be with a new object. But I will check our
code to see what else (if any) we did...
~Roger
Sent from my iPhone
On Sep 23, 2012, at 6:26 PM, ccp999 <[email protected]> wrote:
I had tried to make the call setTabData again but nothing happened.
<http://apache-pivot-users.399431.n3.nabble.com/file/n4022135/Screen_Shot_2012-09-24_at_9.21.49_AM.png>
<http://apache-pivot-users.399431.n3.nabble.com/file/n4022135/Screen_Shot_2012-09-24_at_9.22.21_AM.png>
I use the static call and 'this' is within the Tab class.
program is running with no complaint but nothing changed.
Please help!
--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/Tab-Title-Bar-doesn-t-adjust-the-width-properly-tp4022133p4022135.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.