[H-GEN] Help with Java...

James C. McPherson James.McPherson at Sun.COM
Sun Dec 7 17:48:25 EST 2003


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

Brad Apps wrote:
> Wondering if anyone would be willing to give me some help with a Java 
> error and/or configuration?
> 
> 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();


Brad,
what's the error message that you get? What help do you think anybody
will be if you don't provide any information to assist those who
might help you?

Other questions -
do you have the correct import statements?
which package declares createObject?
are you following an example from a book? if so, which book?

what do you mean by configuration anyway?


James C. McPherson
--
Pacrim PTS Engineer            828 Pacific Highway
                                Gordon NSW
Sun Microsystems Australia     2072



_______________________________________________
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