Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Beans Binding for Dummies

DZone's Guide to

Beans Binding for Dummies

· Java Zone
Free Resource

Navigate the Maze of the End-User Experience and pick up this APM Essential guide, brought to you in partnership with CA Technologies

If you want to really understand "beans binding", i.e., JSR-295, you can study lots of documents. Alternatively, you can go through a small but very powerful demo, here. At the end, you have a bean, which has properties that you bind to Swing components. No coding at all, because the NetBeans tooling makes it a point-and-click experience.

At the end, and only a few clicks later, I moved the demo to the NetBeans Platform, installing it in the IDE's "output" window position. (I created a suite, which included two library wrappers, for the beans binding JAR and the original app JAR, together with my functionality module that provides the TopComponent, which creates the new window in the IDE.) Now, I can change the text in the JTextField below and then immediately the text in the ticker is changed. Why? Because the relevant property in the ticker bean is bound to the Swing component (in real life, when you run the app, the yellow banner with the blue text is moving from right to left, like a "ticker", such as is found on the bottom of the screen on CNN, for example):

Take my advice and follow the Ticker Demo and you too will find out what it's all about.

 

Thrive in the application economy with an APM model that is strategic. Be E.P.I.C. with CA APM.  Brought to you in partnership with CA Technologies.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}