Created
November 7, 2012 19:58
-
-
Save mudgen/4033999 to your computer and use it in GitHub Desktop.
Hyphen in Clojure namespace
This file contains 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 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