scrollPane.getStyles().put("backgroundColor", 10);
On 10 June 2011 18:46, Edvin Syse <[email protected]> wrote:> In some cases I want to change the backgroundColor of a ScrollPane. I do it > like this: > > ScrollPaneSkin skin = (ScrollPaneSkin) getSkin(); > TerraTheme theme = (TerraTheme) Theme.getTheme(); > skin.setBackgroundColor(theme.getColor(10)); > > I don't care that I reference the TerraTheme directly, but apart from that > - is this a good way to do it? > > -- Edvin > > >
