1. Links
  2. Structure of Swing App
  3. Redrawing Screen


  • (Great intro to using clojure and Swing)[http://stuartsierra.com/2010/01/02/first-steps-with-clojure-swing]
  • (Swing API Javadocs)[http://docs.oracle.com/javase/7/docs/api/index.html?javax/swing/JFrame.html]

Structure of Swing App

The outermost window is a (JFrame)[http://docs.oracle.com/javase/7/docs/api/index.html?javax/swing/JFrame.html].

The layout is composed of nested hierarchy of containers which are all subcomponents of (JComponent)[http://docs.oracle.com/javase/1.5.0/docs/api/javax/swing/JComponent.html]

Redrawing Screen

When using Java, this normally isn't needed. But in clojure, when working from the repl, use the .revalidate method to force a redraw.