X

Swing Application Framework + Swing Databinding Demo

Guest Author



Ever wondered how will NetBeans 6 support JSR-295 and JSR-296? Watch my new flash demo. Thanks to various Swing & NetBeans engineers for the code I reused when recording the demo:



Swing application development simplified

Join the discussion

Comments ( 38 )
  • Cicero Zandoná Monday, March 5, 2007
    This is really good, and funny too.
    For illustration purpouses a picture of a Trabant can be found here:
    http://pt.wikipedia.org/wiki/Imagem:Trabant601L.jpg
  • Roumen Monday, March 5, 2007
    Cicero, thanks for your comment... the wikipedia entry about Trabant is pretty cool! :)



    http://en.wikipedia.org/wiki/Trabant
  • Jacek Monday, March 5, 2007
    Having this much fun at work should be illegal! Seriously though, this is looking very impressive.
    The only suggestion would be to come up with some dialogue to make binding faster, the current popup dialog seems to be quite cumbersome when having to bind many properties. But you mention it that you guys are working on how to correct this for the final version.
  • Alexis MP Monday, March 5, 2007
    I want the bits! :)
  • Roumen Monday, March 5, 2007
    Jacek: yes, the binding dialogue will be definitely improved. What you see is a
    prototype, they're going to rewamp the user interface.



    Alexis: speak with Scott Violet, I heard he is going to publish the bits for the databinding stuff. Swing application framework protype is published in Hans Muller's blog.
  • Jacek Monday, March 5, 2007
    I think a good idea would be to also expand the range of templates for a Swing app...I doubt most apps consist of a single window. It would be good to add a template with multiple tabs or some sort of template that swaps panels in/out using CardLayout.
    This would make it inherently that much more usable for real-world applications. If you could integrate stand-alone some of the docking functionality of the NetBeans IDE than that would be border-line genius. :-)
  • Tomas Monday, March 5, 2007
    Absolutelly awesome demo :-)) I think demos as this one can show pretty well, that java on desktop is far from being dead.. Great and funny demo ;-)
  • Žerem Monday, March 5, 2007
    Bravo!
    Finally complex implementation of databinding in favorite IDE.
    Hope it wouldn't be restricted to database as data source only. Integrating web services or http invoker support could make it great project.
  • Curt Cox Monday, March 5, 2007
    this looks great. Let us know when there is a NetBeans nightly build or snapshot available with JSR-295/296 support.
  • tume Monday, March 5, 2007
    it's like trabant.
  • Roumen Monday, March 5, 2007
    Yes I'll let you know when the bits are available - hopefully soon :)
  • Ruxton Tuesday, March 6, 2007
    Bravo!
    The winner really is the developer too, can't wait to even start playing with this stuff :P
  • GermanGuy Wednesday, March 7, 2007
    Great demo, great new frameworks, and the comments about the Trabi are simply hilarious!
  • evanx Wednesday, March 7, 2007
    looks great! It's there a wget'able HTTP URL of the .mov or whatever i can download and watch in VLC? Cos my internet connection is flaky and the video gets stuck halfway and the player doesn't seem to recover from that. The only thing that works reliably for me is wget -c
  • Roumen Wednesday, March 7, 2007
    Here's a zip for download with the demo.
  • levmatta Wednesday, March 7, 2007
    This demo rocks, but is not solid because I just download the latest Netbeans 6 Dev Daily Release and this functionality is not there. How can I try this out?
  • Roumen Wednesday, March 7, 2007
    This functionality is being integrated right now into trunk... it will be available in next milestone or two. We thought we would provide the demo earlier so that people know what we're up to. Sorry, you will be able to try it soon.
  • Rajesh Wednesday, March 7, 2007
    Nice job Roumen, Is there I can use this right now how do I add support for JSR-295 and JSR-296 is that already in CVS, what kind of tweaking is required to get it to work.
  • Roumen Wednesday, March 7, 2007
    The code is being migrated to new editor infrastructure, so it will be completely buildable later on (the demo is based on an old build which is out-of-date now). Please check future milestones, the functionality will appear there.
  • Bill Wednesday, March 7, 2007
    Is this demo based off the form_promoh branch? If not, which branch is it? ;)
  • Roumen Wednesday, March 7, 2007
    I don't know, I got the build from developers. Ask Tomas Pavek or someone else from the form team.
  • Junge junge, strenge Jacke! Wednesday, March 7, 2007
    [Trackback] Mit Netbeans 6.0 wird das Swing Application Framework eingeführt. Damit lassen sich Swing-Anwendungen speziell für Desktop-Applikationen erstellen. Die hier gezeigte Flash-Demo zeigt zwar in erster Linie die Besonderheit, Textfelder direkt an...
  • alf Wednesday, March 7, 2007
    It's almost wonderful
    Only one question...
    Can I use it with JDO , I mean withOut a JDBC connection , directly with the POJOS ... using get set
  • Roumen Wednesday, March 7, 2007
    The binding framework uses Java Persistence API, so yes, you use POJOs for data access, not JDBC.
  • netPaladin Wednesday, March 7, 2007
    Phew, what a demo ! I've been waiting for data binding in netBeans for ages ! Hopefully, it'll be here in 6.0 M8 :)
  • Adam Taft Wednesday, March 7, 2007

    Hey, that's pretty gee-whiz...

    But, binding to a local database in 2-tier fashion solves what problem?

    Data binding is cool and all, but until data binding like this works without toplink and the j2ee annotations, it's not really relevant for the majority of java desktop applications which are data oriented.

    When you can easily bind to web services (not necessarily just soap either), then we're talking. Until then, it's just not too exciting.

    Adam

  • Roumen Thursday, March 8, 2007
    The binding will work with JPA in the first release, however the code behind it is general so binding to web services or general property binding can be added later on (and most probably will be added in after 6.0).
  • guest Thursday, March 8, 2007
    This presentation refuses to run on linux.
    I hear a few words of roumen and than the presentation stops. The other presentations run ok. Any thoughts?
    Kees
  • Roumen Thursday, March 8, 2007
    Are you using the latest version of flash? You can try to download the zip and run it locally.
  • GermanGuy Thursday, March 8, 2007
    On my Ubuntu Linux 6.10 with SeaMonkey 1.1.1 and the newest Flash plugin the presentation ran fine.
  • Ramon Thursday, March 8, 2007
    Great Demo!
    I had the same problems like 213.84.91.139, so I ran the Demo in IEs4Linux Browser (with the newest Flash player plugin) which is easy to install in Linux.
  • Kees Kuip Thursday, March 8, 2007
    OK! thanks roumen.
    The application will run locally if I just click the 'netbeans_6_gui_builder.swf' file.

    It doesn't work when I try the html file in the zip.
  • Laurent M Thursday, March 8, 2007
    Brillant!
    You know, i'm more and more addicted to your demos, they're alway very instructive!
    Since I had nio time reading all 32 coment ( ;) ) I'll ask a question that may have been answered already:
    Will there be a possibility to create our own S.A.F template and import it in NetBeans ?
    Good work again!
  • WilliamChen Thursday, March 8, 2007
    Hi Roumen,
    I wrote an article in my blog describing this new demo by linking to your demo. But most of my blog readers are from China. They don't have large bandwidth. So they complained that they cannot play it simply because of the network. Can you give us the link so that we can download it and upload it onto our blogs located in China?
    Thank you very much.
    -William
  • David Kaspar Friday, March 9, 2007
    Excellent demo, very easy to follow and gives impression of how powerfull the Swing Databinding can be. Of course the highlight were the famous trademarks of the Trabant, "noise, smell and very low top speed", Hurra!
  • Roumen Friday, March 9, 2007
    WilliamChen, here is a link for download.
    Laurent, as for the templates for Swing application framework, I don't know the answer. I know that one of the features for Matisse.next is support for templates, but I am not sure if that will work with S.A.F., too.
    David, yes Trabant is the king :)
  • Jürgen Hoffmann Friday, March 9, 2007
    Hi Roumen,
    as always, I love your blogs. Me being an eclipse user, I straight awy went to the netbeans devl downloads page, to get the lates release and try the builder out. BUT There was no new Java Desktop Application Template under the New Project -> General Tab.
    Do I need some special addon?
    Kind regards
    Juergen
  • Roumen Friday, March 9, 2007
    Hi Jurgen, the features will come in Milestone 8 and Milestone 9, they're developed somewhere on branch now. I know it is not completely fair to publish the demo before people can try it out - but we wanted to let people know in advance what's coming (sort of like a trailer ;). So stay tuned, it will be there in either M8 or M9.
Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.