File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JavaFX and the fly likes Background color of the RadioButton group Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JavaFX
Bookmark "Background color of the RadioButton group" Watch "Background color of the RadioButton group" New topic
Author

Background color of the RadioButton group

Mathew Kuruvilla
Ranch Hand

Joined: Nov 27, 2001
Posts: 135
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

Joined: Aug 30, 2009
Posts: 20
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


Dean Iverson
book - blog - twitter
Mathew Kuruvilla
Ranch Hand

Joined: Nov 27, 2001
Posts: 135
Hey, thanks. I got it working now.

 
Consider Paul's rocket mass heater.
 
subject: Background color of the RadioButton group