Created
June 28, 2011 00:01
-
-
Save daveray/1050157 to your computer and use it in GitHub Desktop.
Hugo in Seeesaw
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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