[H-GEN] Help with Java...

Andrae Muys andrae.muys at braintree.com.au
Sun Dec 7 20:38:39 EST 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Brad Apps wrote:
> Here’s a sample of the code:
> 141 :   function getImageDimensions(sFile) { 
> 
> 142 :   var strRtn = structNew(); 
> 
> *143 :**   var oImage = createObject("java","javax.swing.ImageIcon").init(sFile); *
> 
> 144 :   strRtn.width = oImage.getIconWidth(); 
> 
> 145 :    strRtn.height = oImage.getIconHeight();
> 

Well I suspect your first problem is that AFAICT you aren't writing 
java.  So I suppose the next question is, what language do you believe 
this to be?  And then you might consider providing us with some 
description of the error you are experiencing beyond "It dosn't work!".

Andrae



_______________________________________________
General mailing list
General at lists.humbug.org.au
http://lists.humbug.org.au/cgi-bin/mailman/listinfo/general



More information about the General mailing list