Sun Java Solaris Communities My SDN Account Join SDN
 

JavaOne Online Technical Sessions

Pump Up Your Technical Knowledge
Listen and watch as industry luminaries bring you the latest on Java technologies
Begin Product Tab Sub Links

User Interfaces in XML: The JAXX Framework
TS-4265


Presenter: Ethan Nicholas, Yahoo! Inc


JAXX is a powerful open source framework for building user interfaces using XML. Tasks that once required pages of complex Java programming language code can be performed in a few lines of straightforward XML. JAXX supports the entire Swing component library, and you can add support for your own custom components with as little as a single line of code.

JAXX's scripting language supports Java programming language's full syntax, and JAXX components can easily be manipulated from Java classes, so you won't be giving up any of Java technology's power and expressiveness. With a powerful and flexible data binding and validation system built in, entire applications can be built with nothing but XML. Or you can take an existing application and add a few JAXX components to it with a minimum of effort--use as much or as little JAXX as you need.

Here's an example of JAXX code:

<JFrame id= frame > 
  <JTextField id= name />
  <JLabel text= You entered: {name.text} /> <!-- updates as user types! --> 
  <JButton label= OK  enabled= {name.text.length() > 0}  
onActionPerformed= frame.dispose() /> 
</JFrame>

Watch The Session
You need to be a registered Sun Developer Network member to view this multimedia session. If you are a registered SDN member, please click on "Watch Multimedia" button to log-in to view the multimedia session. If you wish to join SDN, please click here.