You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Jamal BERRICH <jb...@gmail.com> on 2011/10/25 19:06:08 UTC
BXML and ressource
Hi every body,
So, i have a modulaire application using swing and pivot that contans :
1 - a core jar
2 - a module jar developed with pivot
3- A launch jar
the core jar contans a common image ressource and i want to use this common
in my module jar but that not work for exemple :
In the core jar i have a background.jpg in the ma.core.common,.img
package and ma.core.common.bxml.ConfirmationDialog.bxml
In the module jar i have this
<ImageView image="@??? Path to background.jpg" styles="{fill:true,
preserveAspectRatio:false}"/>
and
<bxml:include inline="true" src="Path to ConfirmationDialog.bxml"/>
can you help me ?
Jamal
Re: BXML and ressource
Posted by Jamal BERRICH <jb...@gmail.com>.
That work :)
2011/10/26 Sandro Martini <sa...@gmail.com>
> Hi Jamal,
>
> can you try to set in ImageView the full package name containing the
> resource, but converting "." chars in "/" like:
> <ImageView image="/org/apache/pivot/tutorials/clock.png"/>
> (sample taken from here:
> http://pivot.apache.org/tutorials/labels-and-image-views.html ).
>
> And if doesn't works, can you even try to put all your code
> (temporary) in a single project, with different packages for sources,
> and retry (with the just suggested approach and then maybe even with
> the @ version) ?
>
> Bye,
> Sandro
>
Re: BXML and ressource
Posted by Sandro Martini <sa...@gmail.com>.
Hi Jamal,
can you try to set in ImageView the full package name containing the
resource, but converting "." chars in "/" like:
<ImageView image="/org/apache/pivot/tutorials/clock.png"/>
(sample taken from here:
http://pivot.apache.org/tutorials/labels-and-image-views.html ).
And if doesn't works, can you even try to put all your code
(temporary) in a single project, with different packages for sources,
and retry (with the just suggested approach and then maybe even with
the @ version) ?
Bye,
Sandro