Focus on JavaFX 2 FXML with NetBeans IDE 7.1 0

In October 2011, I used the post Hello JavaFX 2.0: Introduction by NetBeans IDE 7.1 beta to look at using NetBeans IDE 7.1 beta to build a simple Hello, World style of JavaFX 2.0 application. In this post, I look at using NetBeans IDE 7.1 (no longer in beta) to build a slightly more sophisticated JavaFX 2 application that makes heavy use of FXML.

Go to Source

JavaFX 2.1 SDK Developer Preview Comes To Linux 0

The beta is a 32-bit release, and requires Ubuntu 10.04 or later or equivalent, and requires JDK 7 Update 2. To give it a spin, I downloaded the JavaFX 2.1 SDK Developer Preview for Linux, the *.tar.gz version of 32-bit JDK 7. Untarred them into the /opt directory, resulting in

Go to Source

FXML Stuffs (include and define) 0

Hello folks,

Today I would like to blog about the FXML define and include tag which can be very useful for those who are very keen to use FXML in their application. The FXML is an XML file which is loaded by javafx using FXMLLoader . It’s all loaded at the runtime and it’s really fast to load and easy to learn too. The previous blog about the FXML as Flexible XML is just a basic about FXML . Today in this blog here you will learn about how to include FXML files in your main FXML file.

I’m talking about the > tag of the FXML.

Go to Source

Advantages of JavaFX builders 0

Very often one has to create a number of of similar objects. Using JavaFX builders for this task instead of constructors has several advantages as we will see in this article.

In short, builders…
are easier to read and understand
avoid some “copy & paste”-bugs
result in small, but simple code, if builders are reused

When using JavaFX, you typically have to create a number of similar objects with only few attributes different. For example your screen may contain buttons, which have the same size and style, but different locations, labels, and event handlers. Or you want to use similar transitions for some elements.

Go to Source

Percent Width for TableColumn in JavaFX 2.x TableView 0

The moment I started working with TableView in JavaFX 2.x, the first question raised in my mind is “Why there is no feature of setting the column widths in percentage as we do in HTML?” I am not sure what could be the reasons for not setting this feature. But if my application demands, I have to implement this by somehow ;) . Ofcourse there are a couple of issues logged in JIRA  related to this functionality, but till it get resolved here is the way (workaround) how I tried to get it.

Go to Source

Sliding in JavaFX (It’s all about clipping) 0

JavaFX animation package provides many amazing animation/transition effects. Let’s look into another effect, “Sliding” effect of node (relative to the parent node).  The term ‘relative’ refers to, like the node should hide relatively under the parent node by sliding. If you are familiar with “Titled Pane”, I am speaking about the same effect how the content of the pane is shown and hide. I am trying to achieve this with some simple logic and using some properties of a node.

Go to Source

Show data in JavaFX is made easy by DataFX project 0

This is a post about the DataFX project and how to show a simple XML in a JavaFX app.

Go to Source

Linux users get what they want: JavaFX 2 gets Linux support 0

Back in May, when the JavaFX 2.0 Beta was released, there was a glaring omission that caused a slight uproar from one large community. No Linux support meant that many developers wouldn’t touch the Internet application platform with a bargepole until it that was changed.

So, with great fanfare, the JavaFX team announced today that JavaFX 2.0 is now Linux-compatible, through the JavaFX 2.1 Developer Preview for Linux, adding a fourth option to finally take that step towards true cross-platform status.

Go to Source

video/presentation – Interface Layout with JavaFX 2.0 [Amy Fowler and Kinsley Wong, JavaOne 2011] 0

Good layout remains one of most challenging aspects of building a user interface. The layout APIs in JavaFX 2.0 were specifically designed to make it easier to achieve great layout in the face of the increasing complexity that has come with animated graphics and resolution independence. Using the context of a practical example, this session covers what you need to know to use JavaFX 2.0 to lay out an aesthetically beautiful and usable interface to meet the expectations of modern users.

[ * ] presentation – https://oracleus.wingateweb.com/published/oracleus2011/sessions/25860/25860_Cho133291.pdf

Go to Source

JavaFX 2.0 is Cross Platform! JavaFX 2.1 developer preview released for Windows, Mac OS, and Linux 0

When we released the JavaFX 2.0 Beta at the end of May, there was an uproar from the Mac and Linux communities complaining that the software was only available on Windows. Developers were very vocal about the fact they would not touch JavaFX until this was remediated. Today, the JavaFX Team is very pleased to announce the availability of the JavaFX 2.1 Developer Preview for Linux, which you can download here.

[ * ] JavaFX 2.1 developer preview 08 released for Windows, Mac OS, and Linux – http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html

Go to Source

Next Page »