This discussion is archived
0 Replies Latest reply: Jan 7, 2013 6:39 AM by fabsav RSS

fail on change tab shape

fabsav Newbie
Currently Being Moderated
Hi :)

i have a tab pane with n tabs and the opportunity to add/close tabs.
the first has a particoular shape, defined in a css file in this way:
#first-top-tab{
   -fx-shape: "a very particular shape";
}
it works fine,

then a listener recognize every change in tabPane.getTabs() and if tab 0 has been removed it sets to #first-top-tab the (new) first tab
tabPane.get(0).setId("first-top-tab");
If i print tabPane.get(0) , it shows first-top-tab, but the shape doesn't change...

do someone knows why ??

thank you!

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points