O'Reilly logo

Griffon in Action by Foreword by Dierk K önig, Andres Almiray, Danno Ferrin, and James Shingler

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. Creating a view

 

This chapter covers
  • A brief introduction to Swing
  • The basics of a Griffon view
  • Composing views with legacy source code

 

Views in Griffon are responsible for composing the visuals aspects of your application. Views are what the user interacts with. There are hundreds of components that you can use to create a view; and no matter which one you choose, you can compose the view in the same manner via a specialized DSL based on Groovy’s SwingBuilder.

Griffon views can also be composed of other views, resulting not just in clever reuse of code but also in a way to display new elements on the fly.

In this chapter, we’ll take a deeper look at Griffon views. We’ll start by examining a classic Swing example and then ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required