Michael, Timothy, Thanks much to both of you.
>> 2) The current directory (parent of gui2) is in the class-path -cp option when launching Clojure The problem was that I had used the gui directory in the classpath, rather than its parent. (The real problem is that I'm a Java noobie.) The frame opens now and I can cancel it correctly. However, when I click OK (using either the original app.clj or Timothy's version) I get: C:\Users\Mike\Documents\test-project>c:\clojure\clj.bat app.clj Exception in thread "AWT-EventQueue-0" java.io.IOException: Stream closed at sun.nio.cs.StreamEncoder.ensureOpen(Unknown Source) at sun.nio.cs.StreamEncoder.write(Unknown Source) at sun.nio.cs.StreamEncoder.write(Unknown Source) at java.io.OutputStreamWriter.write(Unknown Source) at java.io.Writer.write(Unknown Source) at clojure.lang.RT.print(RT.java:1186) at clojure.pr__788.invoke(boot.clj:1516) at clojure.lang.AFn.applyToHelper(AFn.java:184) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.apply__135.doInvoke(boot.clj:364) at clojure.lang.RestFn.invoke(RestFn.java:428) at clojure.prn__799.doInvoke(boot.clj:1540) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.apply__135.doInvoke(boot.clj:364) at clojure.lang.RestFn.invoke(RestFn.java:428) at clojure.println__805.doInvoke(boot.clj:1556) at clojure.lang.RestFn.invoke(RestFn.java:413) at clojure.eval__2299$fn__2301.invoke(app.clj:12) at clojure.lang.Proxy__2305.actionPerformed(Unknown Source) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source) at javax.swing.DefaultButtonModel.setPressed(Unknown Source) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased (Unknown Source) at java.awt.Component.processMouseEvent(Unknown Source) at javax.swing.JComponent.processMouseEvent(Unknown Source) at java.awt.Component.processEvent(Unknown Source) at java.awt.Container.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source) at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source) at java.awt.Container.dispatchEventImpl(Unknown Source) at java.awt.Window.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) The problem is in the println function, as it works fine when I comment them out. I assume this is some sort of problem sending text to the DOS/Vista command shell that doesn't happen under *nix. Also, no text appears in the command shell when I enter some into the boxes and click OK. This isn't critical to running the app, of course, though having print capability back to the command shell makes an excellent debugging tool. It seems clear it will be an issue for anyone on Windows, and for a broad range of apps. As this is well beyond my modest Java powers, any ideas would be appreciated. Thanks again for you help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---