Color palette from RSS
Color-Chooser picks up color palette information from COLOURlovers two RSS feeds. One which has top ratings and other recently posted palettes. The Color-Chooser enables user to select the color and apply it on JavaFX Nodes.
Click on one of the node - Rectangle or Circle. Select a color from Color-Chooser. Color of the node will be updated with selected color.
Understanding the Code
Palette information is obtained from RSS feed using RssTask API. This is implemented in FeedUtil class. The RssTask is configured to check the feed every one minute. Title and description is obtained from Item instance in RssTask.onItem event. The palette information is obtained as String. A JavaFX color instance is created from this using Color.web("#rrggbb") method.
If you are using proxy-server for connecting to internet, please follow setup as specified in "Java Networking and Proxies".
Rakesh Menon