Skip to content

Instantly share code, notes, and snippets.

@daveray
Created June 28, 2011 00:01
Show Gist options
  • Save daveray/1050157 to your computer and use it in GitHub Desktop.
Save daveray/1050157 to your computer and use it in GitHub Desktop.
Hugo in Seeesaw
(ns hugo.views.main-view
(:use hugo.db.sqlite)
(:use [seesaw core color]))
(defn create-home-view [data]
(show!
(frame
:title "@rippinrobr's Hugo Best Novel Database"
:on-close :exit
:size [500 :by 600]
:content
(border-panel
:north (label
:text "The HUGO - Best Novel Nominees and Winners"
:opaque? true
:foreground java.awt.Color/WHITE
:background (color 145 220 71)
:font "Helvetical-BOLD-16")
:center (scrollable (listbox :model data))
:south (button
:text "Close"
:foreground java.awt.Color/WHITE
:background (color 144 180 254)
:font "Helvetical-BOLD-14"
:listen [:action-performed #(dispose! %)])))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment