On 15/11/2007, Xi Jiarong <[EMAIL PROTECTED]> wrote:
>
> I used the following method to get imagage from another bundle, but still
> got problems,
>  IconImage1 = new ImageIcon(Toolkit.getDefaultToolkit().getImage(
> bdlCtx.getBundle(bundle_id).getResource(bundle_name+".gif")));
>  What's wrong? and how to get?
>
coding suggestion: don't try and do everything in one line of Java :)

if you separate it into individual statements you can check+print each
return value
and catch+print any exceptions to find out where it fails.  This should tell
you which
statement is failing and the exception should give you a hint how to fix it.

> Best Regards!
>
> ----------------
> Jerry
>
>
> _______________________________________________
> OSGi Developer Mail List
> [email protected]
> http://www2.osgi.org/mailman/listinfo/osgi-dev
>



-- 
Cheers, Stuart
_______________________________________________
OSGi Developer Mail List
[email protected]
http://www2.osgi.org/mailman/listinfo/osgi-dev

Reply via email to