Example Java oriented SWT GUI application in Clojure

368 views
Skip to first unread message

BerlinBrown

unread,
Jan 12, 2009, 5:24:31 PM1/12/09
to Clojure
Here is an example SWT application. It is a 'search' tool. Open a
file and the search term is highlighted. It has a java oriented
approach because I copied the java code verbatim. This might be
useful if you are still used to imperative programming.

Main source:
http://jvmnotebook.googlecode.com/svn/trunk/clojure/swt/search/src/octane_main.clj

Additional Files (all you really need is what is in the lib directory)
http://jvmnotebook.googlecode.com/svn/trunk/clojure/swt/search

But, I am all ears for suggestions (I am sure there are very, very
many) and if you want, send me a patch file, I will be glad to update
it.

Might help for newbies like me.

e

unread,
Jan 12, 2009, 9:42:28 PM1/12/09
to clo...@googlegroups.com
what is "set!"?  I don't see that in the api

Matt Revelle

unread,
Jan 12, 2009, 9:48:10 PM1/12/09
to clo...@googlegroups.com

e

unread,
Jan 12, 2009, 9:58:16 PM1/12/09
to clo...@googlegroups.com
thanks.  I think this will be useful, but I have to figure out how to get it to build in enclojure.  Right now I get, "Exception in thread "main" java.util.MissingResourceException: Can't find bundle for base name octane_main, locale en_US (octane_main.clj:136)"

On Mon, Jan 12, 2009 at 5:24 PM, BerlinBrown <berlin...@gmail.com> wrote:

BerlinBrown

unread,
Jan 13, 2009, 8:46:13 AM1/13/09
to Clojure


On Jan 12, 9:58 pm, e <evier...@gmail.com> wrote:
> thanks.  I think this will be useful, but I have to figure out how to get it
> to build in enclojure.  Right now I get, "Exception in thread "main"
> java.util.MissingResourceException: Can't find bundle for base name
> octane_main, locale en_US (octane_main.clj:136)"
>
> On Mon, Jan 12, 2009 at 5:24 PM, BerlinBrown <berlin.br...@gmail.com> wrote:
>
> > Here is an example SWT application.  It is a 'search' tool.  Open a
> > file and the search term is highlighted.  It has a java oriented
> > approach because I copied the java code verbatim.  This might be
> > useful if you are still used to imperative programming.
>
> > Main source:
>
> >http://jvmnotebook.googlecode.com/svn/trunk/clojure/swt/search/src/oc...
>
> > Additional Files (all you really need is what is in the lib directory)
> >http://jvmnotebook.googlecode.com/svn/trunk/clojure/swt/search
>
> > But, I am all ears for suggestions (I am sure there are very, very
> > many) and if you want, send me a patch file, I will be glad to update
> > it.
>
> > Might help for newbies like me.

Yea, if you see the parent folder, get the octane_main property file.
It is needed by the app.

http://jvmnotebook.googlecode.com/svn/trunk/clojure/swt/search

e

unread,
Jan 15, 2009, 9:20:08 PM1/15/09
to clo...@googlegroups.com
anyone able to get this going on a Mac yet?  The main window comes up, but shortly after crashes.

Paul Barry

unread,
Jan 15, 2009, 9:53:00 PM1/15/09
to clo...@googlegroups.com

e

unread,
Jan 15, 2009, 11:41:36 PM1/15/09
to clo...@googlegroups.com
yeah.  That fixed it.  Thanks.
Reply all
Reply to author
Forward
0 new messages