Griffon: Swing just got fun again

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

1 comments

Comments 1 - 1 of 1 previous next Post a comment

Post a comment
Embed Video
Edit your comment Cancel

1 Event

Griffon: Swing just got fun again - Presentation Transcript

  1. Griffon: Swing just got fun again James Williams
  2. Agenda
      • What is Griffon?
      • What's un-fun about Swing?
      • Getting Started
      • Builders
      • Griffon MVC
      • Lifecycle
      • Add-ons
      • Plugins
      • Demos
      • QA
  3. What's un-fun about Swing?
  4. What's un-fun about Swing?
      • not knowing where stuff is
      • old school Swing is repetitive
      • unresponsive user interfaces
      • configuring JNLPs is a nightmare
      • signing jars is a pain
      • you have to choose between applets and desktop pretty early 
    •     
  5. What is Griffon?
      • desktop framework leveraging Swing and Groovy
      • Apache 2 Licensed
      • very extensible
      • unofficially called "Grails for the desktop"
  6. Griffon Application Structure
  7. Getting Started
      • griffon create-app <AppName>
      • griffon list-plugins 
      • griffon install-plugin <PluginName>
      • griffon run-app
      • griffon run-applet
      • griffon run-webstart
      • griffon package
  8. Builders
      • DSLs to compose complex structures
      • Encapsulate some common conversions 
      • Can allow elements from different toolkits to be mixed
      • Yield much more readable code than typical Java code
  9. Builders - Sample Code
    • JFrame frame = new JFrame(&quot;My Frame&quot;);
    • frame.setSize(200,200);
    • frame.add(new JLabel(&quot;Test Label&quot;));
    • is the equivalent to :
    • frame (title: &quot;My Frame&quot;, size:[200,200]) {
    •      label(&quot;Test Label&quot;)
    • }
  10. Models
      • contain variables referenced by the controller and view
      • can use the @Bindable notation to provide binding support
      •   are injected into the controller and view at run-time
  11. Views
      • can be written in Groovy or Java
      • represent a single display in your application
      • can mix and match components from different UI toolkits
  12. Demo - Simple Calculator
  13. Griffon Lifecycle
      • Initialize
        •   run before any Swing code is started
      • Startup
        •   run after MVC Groups are initialized
      • Ready
        •   all events have been processed by the EDT
      • Shutdown
        • all cleanup operations go here
  14. UI Threading aka &quot;The Evil EDT&quot;
      • doOutside
      • doInside
      • doLater
      • edt
  15. Add-ons
      • run-time analog to plugins
      • can add or respond to runtime events
      • can decorate MVC Groups
  16. Plugin Types
      • User Interface Builders
      • Testing
      • Other JVM Langs
      • Bling
      • Database
      • Miscellaneous
  17. User Interface Builder Plugins
      • AbeilleFormBuilder
      • CSSBuilder
      • FlamingoBuilder
      • FxBuilder
      • GfxBuilder
      • JIDEBuilder
      • MacWidgetsBuilder
      • SwingXBuilder
      • SwingXtrasBuilder
      • TrayBuilder
      • TridentBuilder
  18. Testing Plugins
      • Code coverage
      • CodeNarc
      • EasyB
      • Fest
      • JDepend
  19. JVM Language Plugins
      • LangBridge
      • Clojure
      • Scala
  20. Bling Plugins
      • JGoodiesForms
      • Splash Screen
      • Transitions
  21. Miscellaneous Plugins
      • GPars
      • Installer
      • JUNG
      • Wizard
  22. Demo - SwingPad
  23. Demo - Griffon on Wave
  24. Griffon Links
    • Download: http://griffon.codehaus.org (includes Greet)
    • Gr8Forums: http://bit.ly/Griffon-on-GR8Forum
    • Demos (except Greet):  http://github.com/jwill/griffon-testing-grounds/
  25. Griffon Team on Twitter
      • @ecspike - James Williams (Me)
      • @shemnon - Danno Ferrin
      • @aalmiray - Andres Almiray
      • @joshareed - Josh Reed
      • @jshingler - Jim Shingler
SlideShare Zeitgeist 2009

+ James WilliamsJames Williams Nominate

custom

308 views, 0 favs, 0 embeds more stats

Slides from session at SVCC '09

More info about this document

© All Rights Reserved

Go to text version

  • Total Views 308
    • 308 on SlideShare
    • 0 from embeds
  • Comments 1
  • Favorites 0
  • Downloads 5
Most viewed embeds

more

All embeds

less

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

Cancel
File a copyright complaint
Having problems? Go to our helpdesk?

Categories