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 ...

Get Griffon in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.