Pular para o conteúdo principal

Postagens

Mostrando postagens com o rótulo fxml

Another World Cup App... Using JavaFX, FXML, Javascript, CSS

The World Cup Brazil is happening! It's exciting to see people from all over the world visiting my country! Today I decided to create another World Cup App, this time I'll use JavaFX, but I won't write any Java code . It's a simple app to visualize all the world cup matches and click on a game for details about it. I spent less than 3 hours working on the core of the application and a few more hours working on the details. Getting the resources to create the App By resources I meant images and to do this I downloaded all the flags images from Fifa site. It was a small and easy scrapping. Notice that all images are in under the following URL:  http://img.fifa.com/images/flags/4/{CODE}.png. To download all flags I used the following Python Script: import urllib2 codes = open('countries_codes.txt', 'r') for line in codes:         code = line.replace('\n', '').lower() + '.png'         img_url = 'http://img.fifa.com/ima...

JavaFX CRUD: The Client Side

Beta post In my last post I showed a JEE application to make CRUD operation on a domain object called Framework, which represents an application framework. In this post we will show the client part, the technologies that were used and how simple is to create JavaFX applications using FXML and pure Java. The view I had the honor of being one of the first "bloggers" to test JavaFX Scene Builder . Using this tool you can drag and drop interface elements and a XML will be generated and it has the .fxml extension. This FXML can be loaded in a JavaFX application and the view elements can be inject in a controller class using the @FXML annotation. Screenshots from the application are in a previous post . Then, in Java side, we have a class called  CrudframeworksPresenter . This class is linked with the FXML and it the presenter, which updates the view and handle the CRUD actions. See the FXML source code first line where I refer to the controller class. I tell the con...

Testing Afterburner.fx in a CRUD Application using JavaFX and FXML

It's been a few months without any new post on this blog :( I was preparing an application using Infinispan, NoSQL and JavaFX and unfortunately I lost my data in the disc... That would an epic post! In this post I'm going to show you a good old CRUD using FXML, JavaFX and the recent framework called Afterburner.fx , created by Adam Bien . About Afterburner.fx   Afterburner.fx is a minimalistic (2 classes) JavaFX MVP framework based on Convention over Configuration. It's not me saying this, it's on afterburner.fx web page. What I can say I like the idea of this simple framework. I can say that it will not solve all issues, but it brings DI and the conventions saves  from writing repetitive code. What is FXML? It's a declarative way to build JavaFX interfaces using XML. FXMLs declare elements using XML and you can relate it to a controller that will handle the view for you. The controller can have the view elements injected where you will be able to retrie...