Pular para o conteúdo principal

Postagens

Mostrando postagens de abril, 2012

Fetching REST Data Sources with DataFX

DataFX is a project that helps you to show data in a JavaFX application from different sources of data in a few formats. You may read local data using the FileSource and this datasource may contain data in XML or CSV formats. I demonstrated how to use it in a previous post , today I want to quickly show you show to fetch data using the new RestRequestBuilder class. RestRequestBuilder is very easy to use and with a few lines of code you will be able to fetch a JavaFX TableView from a remote XML, JSON or CSV source. As the name says, this class uses the builder way to create REST requests, which means that in a simple line of code you will have your request ready to fetch data in a TableView. Then you will simply have to inform to your datasource (as datasource you can understand a XMLDataSource or CSVDatasource ). Well, this post is very abstract so far, is time to use what we talked about in a program. To do that I want to present you a WEB Service I created a few years ago t...

A First look at JavaFX Scene Builder Tool

It was just announced in JavaOne Japan that the JavaFX SceneBuilder Tool Beta is available for Download . Immediately I downloaded the tool and made a few tests and it's really a great tool. You should also try since it's available for Linux, Mac and Windows. The tool in entirely in JavaFX and you can preview the changes in a minute. In the following screenshot you can have a look of the appearance of the tool when you open it. You can create application simply dragging and dropping the controls on left side to the center. Depending the control you selected you will be able to modify its properties on right side pane. There are lines that help you positioning components and aligning them. It makes easy create well known layouts such as Form Layouts. A cool and useful feature is the preview. You fan preview your application and there's no delay, the tool makes the preview immediately. Much better than spend time compiling and recompiling source code. Finally...