Re: Sisc and AWT ....

"Scott G. Miller" <[email protected]> Wed, 25 Oct 2006 13:45:57 -0500
Newsgroups gmane.comp.java.sisc.user
Message-ID <[email protected]>
On Wed, Oct 25, 2006 at 03:10:56PM +0200, Roberto Brunelli wrote:
> Scott,
> 
> thanks for the pointer.
> 
> I'm trying to go through the (admittedly short) tutorial
> 
> 	(import s2j)
> 	(import generic-procedures)
> 
> 	(define-generic show-input-dialog)
> 	(define <option-pane> (java-class '|javax.swing.JOptionPane|))
> 	(define x (show-input-dialog <option-pane> (->jstring "Enter an integer:")))

Indeed, that tutorial is a bit out of date.  Change define-generic to 
define-generic-java-method and that much should work.

You should take a look at Chapter 8, section "Calling Java from Scheme"

  Scott

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642