File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Background color of the RadioButton group

 
Mathew Kuruvilla
Ranch Hand
Posts: 141
  • 0
  • 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
  • 0
  • 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: 141
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, thanks. I got it working now.

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic