Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-11 Thread Timothy Pratley
On Feb 6, 10:36 pm, Emeka emekami...@gmail.com wrote: You could even embed a REPL into your application with a socket I am interested, could you make a rough patch for me to draw some inspiration from There is a handy server_socket.clj in clojure-contrib which makes it relatively trivial

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-06 Thread Emeka
Tim You could even embed a REPL into your application with a socket back-door, connect to it and really have fun with your users. I am interested, could you make a rough patch for me to draw some inspiration from Emeka --~--~-~--~~~---~--~~ You received this

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-05 Thread prhlava
2) The current directory (parent of gui2) is in the class-path -cp option when launching Clojure Updated the guide with note about CLASSPATH - basicaly, I have current directory (.) listed in it. Also, replaced quote character with quote word in the code. Updated version so far only here:

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-05 Thread AlamedaMike
Vlad, thanks for updating the guide. I've saved the new version. Tim, thanks for the ideas. I've tried both and both work well. It did get me thinking that it would be great to have a way to interrogate an open gui app from the command line, or perhaps, from a separate area in the app itself

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-05 Thread Timothy Pratley
It did get me thinking that it would be great to have a way to interrogate an open gui app from the command line, or perhaps, from a separate area in the app itself (say, a special debugging tab in the main window). Having a standard way to alter the app while it's running would be some kind

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-04 Thread prhlava
Hello Tim, Feel free to use it as you wish. I have added the code (with attribution) to the guide. Also, the .java generated code listing should now compile. Updated guide is now on the same locations (including the files section of this group). ... So calling MainFrame.main() runs the

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-04 Thread AlamedaMike
I'm having a problem that appears tied to this aspect of the guide (written for Linux): Before continuing, symlink build/classes/gui into the test-project directory (note, there is a “.” as the last character in the 2nd command): cd ~/test-project ln -s build/classes/gui/ . // note

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-04 Thread AlamedaMike
I'm having a problem that shows as: java.lang.ClassNotFoundException: gui2.MainFrame java.lang.ClassNotFoundException: gui2.MainFrame at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-04 Thread Michael Wood
Hi On Wed, Feb 4, 2009 at 10:54 PM, AlamedaMike limejui...@yahoo.com wrote: I'm having a problem that appears tied to this aspect of the guide (written for Linux): Before continuing, symlink build/classes/gui into the test-project directory (note, there is a . as the last character in the

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-04 Thread Timothy Pratley
java.lang.ClassNotFoundException: gui2.MainFrame To resolve gui2.MainFrame there needs to be MainFrame.class, in directory gui2, in the current class-path. Please check: 1) The directory name matches the namespace (If you can't get mklink working, maybe just copy it instead?) 2) The current

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-04 Thread AlamedaMike
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

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-04 Thread AlamedaMike
The quote symbol rendered is not copy+paste friendly. The quote problem can be fixed by using: (import (quote (gui2 MainFrame)))etc... instead of using the single quote mark. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-04 Thread Timothy Pratley
C:\Users\Mike\Documents\test-projectc:\clojure\clj.bat app.clj Exception in thread AWT-EventQueue-0 java.io.IOException: Stream closed The reason you are seeing this is that stdout has closed when the main clj program reaches the end, but the Swing thread is still running. I remember having

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-03 Thread prhlava
Hello Tim, Thanks for pointing the mistakes in code and the quote thing. Will be fixed in the next version of the guide... You can call main very easily: (MainFrame/main nil) however seeing the default implementation does not return the created object, you can't add the action listeners, so

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-03 Thread prhlava
You can call main very easily: (MainFrame/main nil) however seeing the default implementation does not return the created object, you can't add the action listeners, so it isn't much use. I thought of using it as the start function to make the GUI visible (instead of .setVisible).

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-03 Thread Timothy Pratley
Hi Vlad, Options are good :-). Any objections on including your variant in the guide? Feel free to use it as you wish. It looks that the main is class method? It can be called as above but I do not know if/how to call that after the MainFrame has being created (i.e calling it on

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-02 Thread hubritic
Looks like I'll find it helpful. Thanks! On Feb 2, 10:42 am, prhlava prhl...@googlemail.com wrote: Hello, I have put a short guide on how to create Swing GUI using NetBenans and how to get hands on this generated GUI JForm (java class) from clojure. I hope someone will find this useful...

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-02 Thread prhlava
Cool, at least one positive response so far :-). I have also put the .pdf file into this group's files section, called: clojure-gui-and-netbeans.pdf Vlad --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Clojure

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-02 Thread AlamedaMike
As it happens, I just downloaded NetBeans a few hours ago to start working on this very issue. Thanks for saving me the trouble! Also, Nokia has just changed the licensing of Qt Jambi so that LGPL can be used. My sense is that Qt looks nicer than Swing, though I'd be happy to hear if otherwise

Re: A short guide on how to use NetBeans to create GUI and then use this GUI from clojure available

2009-02-02 Thread Timothy Pratley
Hi Vlad, A very useful guide. PS: Comments welcome... Ok great, let me nitpick! :) The java class you posted doesn't compile (unless name is renamed person_name, and location renamed person_location). The quote symbol rendered is not copy+paste friendly. You can call main very easily: