JavaFX + Yahoo Weather
February 25, 2010 7 Comments
JavaFX Composer preview is available. You can install this plugin. In NetBeans IDE, goto “Tools” -> “Plugins” -> “Available Plugins”. Select “JavaFX Composer” and install the Plugin. Please refer to NetBeans JavaFX Composer for more information.
Summer has set in like a flick of a switch! So couldn’t think of anything else other than Weather. Developed a simple Weather application using Yahoo Weather RSS Feed. It was much easier to visualize and develop using JavaFX Composer, especially for small widget like applications. Soon we will be able to develop complex application using this…
The city is set to Bangalore city by default. Double click on the widget to enable the TextBox, in which you can enter your ZipCode or City and press “Enter” key. Ideally I must persist this information using Storage APIs, but I leave that task to you!
For getting the information from Yahoo, we need to first identify the Where On Earth ID – WOEID of the city using its ZipCode or Name. Please refer to Yahoo WOEID documentation for more information. Once we identify the WOEID, we can use forecastrss feed for getting the weather information.
Please try it out and let me know feedback..