Skip to content

Instantly share code, notes, and snippets.

@keithrbennett
Created March 5, 2009 22:28
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 keithrbennett/74602 to your computer and use it in GitHub Desktop.
Save keithrbennett/74602 to your computer and use it in GitHub Desktop.
(let [
create-an-inner-panel (fn [] (JPanel. (GridLayout. 0 1 5 5)))
label-panel (create-an-inner-panel)
Error:
Exception in thread "main" java.lang.ClassCastException: javax.swing.JPanel cannot be cast to clojure.lang.IFn (FrameInClojure.clj:0)
at clojure.lang.Compiler.eval(Compiler.java:4533)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment