Skip to content

Instantly share code, notes, and snippets.

@mudgen
Created November 7, 2012 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mudgen/4033999 to your computer and use it in GitHub Desktop.
Save mudgen/4033999 to your computer and use it in GitHub Desktop.
Hyphen in Clojure namespace
(ns com.perfectabstractions.im-client.components.ImComponent
(:gen-class :extends com.inductiveautomation.vision.api.client.components.model.AbstractVisionComponent
:main true
:state state
:init init
:constructors {[] []})
(:import (java.awt BasicStroke Color Dimension
Font FontMetrics Graphics
Graphics2D Rectangle RenderingHints
Shape Stroke)
(java.awt.event ActionEvent ActionListener)
(java.awt.font FontRenderContext GlyphVector)
(java.awt.geom AffineTransform Rectangle2D)
(javax.swing JFrame SwingUtilities Timer)
(com.inductiveautomation.vision.api.client.components.model AbstractVisionComponent)))
(defn -init
[])
(defn -main
[]
(doto (JFrame.)
(.setDefaultCloseOperation (JFrame/EXIT_ON_CLOSE))
(.add (doto (com.perfectabstractions.im_client.components.ImComponent.)
(.setOpaque false)
(.setPreferredSize (Dimension. 130 45))
(.setFont (Font. "Dialog", Font/PLAIN 24))))
(.setBounds 100 100 300 300)
(.setVisible true)))
(defn newthing
[]
(print "yikes cool"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment