Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Background color of the RadioButton group

 
Mathew Kuruvilla
Ranch Hand
Posts: 145
  • 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: 145
  • 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