Hello Mona.
On Thu, Aug 24, 2000 at 05:19:0p -0700, Mona Wong wrote:
> Hi:
>
> I'm trying to understand some of the examples I found and am having
> problem at the line:
>
> URL url = <class>.class.getResource ( name );
This is equivalent to
Class t = Class.forName("<class>");
URL url = t.getResource ( name );
Thank you,
Dmitri
>
> This is used in quite a few examples: ClipAnim.java, Text.java,
> ColorConvert.java ...
>
> What I don't understand is the "class.getResource" part. What is this
> "class"?
>
> All help, no matter how basic, are welcome. Feel free to point me to
> a doc online also.
>
> Thanks,
>
> Mona
>
> ==================================================================
> Mona Wong
> National Center for Microscopy and Imaging Research
> University of California, San Diego
> http://www-ncmir.ucsd.edu/
>
> "The truth shall set you free, but first it will piss you off"
> A Landmark instructor
> ==================================================================
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".