This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Background color of the RadioButton group

 
Mathew Kuruvilla
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I have a bunch of RadioButtons which I created as follows:
def chartOptions = for (c in list)
RadioButton {
toggleGroup: ToggleGroup {}
text: c
}

I need some way of grouping these by showing a common background color.
In Java, I used to do this by adding the component to a JPanel and setting the background color.
How can I do the same in JavaFX?
 
Dean Iverson
author
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From Amy Fowler's most recent blog:

Attaching a background to something



You can see the whole thing at: http://www.java.net/blogs/aim
 
Mathew Kuruvilla
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, thanks. I got it working now.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic