Adam Bien's Weblog

Java FX 2 Data Binding Explained …With A JUnit Test

import static;
import static org.junit.Assert.assertThat;
import org.junit.Test;

public class StringDataBindingTest {
    public void bindUnidirectionally(){
        String expected = "DukeFX";
        StringProperty from = new SimpleStringProperty();
        StringProperty to = new SimpleStringProperty();
        String actual = to.get();

Any questions? :-)

NEW dates, new workshop: Java EE 7 Workshops: Bootstrap, Effective, Architectures, JavaScript Bootstrap and HTML 5 December, 7th-11th
NEW: Effective Java EE 7 -- Available For Streaming


A book about rethinking Java EE Patterns


Ah, now i've got it :)

Posted by Mike on December 23, 2011 at 10:41 AM CET #

I hit a roadblock trying to change the Dynamic Web Module version to 2.5. Eclipse reports “cannot change version of project facet dynamic web module to 2.5″, nothing more.How do I change the facet to 2.5?

Posted by net grid on July 21, 2012 at 05:39 PM CEST #

An useful and an important one information to enable displaying data in data grid’s cells.its also an important one.

Posted by Annie on July 23, 2012 at 01:43 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
Online Workshops
...the last 150 posts
...the last 10 comments