Not sure about the "alt+f4", but to have the application quit when the
last window is closed, look at "achiFrameAdapter" in the code at the
following url:

           http://tiny.cc/2FkMf.

The application is setup to track multiple windows being opened, and
when there are no more windows, the application terminates.

Note that when I define the frame, I do the following:

achi-frame (doto (new JFrame) (.setDefaultCloseOperation JFrame/
DISPOSE_ON_CLOSE) (.setResizable false))

I think that "JFrame/DISPOSE_ON_CLOSE" is required.

On May 11, 6:26 am, fendres <198...@web.de> wrote:
> On May 8, 4:25 am, Curran Kelleher <curran.kelle...@gmail.com> wrote:
>
>
>
> > Hello,
>
> > I've posted an example of a simple model-view-controller GUI skeleton
> > in Clojure 
> > here:http://lifeofaprogrammergeek.blogspot.com/2009/05/model-view-controll...
>
> > The GUI has a text box and a panel which draws what you type. It's not
> > much, but I learned a lot doing it, and thought perhaps others could
> > benefit from seeing it.
>
> > The add-watch function is so cool!
>
> > There's probably lots of room for improvement, I would appreciate any
> > recommendations. I've started looking at neman.cells, but don't really
> > understand it yet. Might using cells simplify this code?
>
> > Best,
> > Curran
>
> Hi, nice example. The application doesn't quit on window-close (alt
> +f4) though.
> Regards,
> Felix
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to