• 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.

 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!