I was playing with layers, and I was able to use a background image
just by using layers. What I did was create a background layer where I
placed my image constrained by the with and height of the Page, and
then created another layer on top of that, where I placed my
components. Nonetheless, I have noticed something that I don't know it
is supposed to work like that or not. I have added a Panel inside my
layer, and it does not show in the page. Aren't we supposed to add
other containers inside a layer?
I know you have explained to me how you would do it, but could you
post an example of that using a Panel with a background image.
Thanks in advance,
Fidel.
On Sun, Jul 26, 2009 at 11:47 AM, Luan O'Carroll<luan.o...@gmail.com> wrote:
>
> Hi Fidel,
>
> Does the layer have a layout? If so that could be affecting the
> behavior. Aria should be setting the layout to null (but I'll have to
> check that).
>
No, it doesn't. I haven't added any layout. I have added to the page
afterwards, but not to the layer itself.
Thanks,
Fidel.
Thanks!
I will have a look at it.
Fidel.
On Sun, Jul 26, 2009 at 2:30 PM, Luan O'Carroll<luan.o...@gmail.com> wrote:
>
> Hi Fidel,
>
> I've just commited a small sample to SVN, see
> http://aria.svn.sourceforge.net/viewvc/aria/trunk/samples/features/Layers
>
> It has a background image and some trivial interaction with the layers.
>
I have looked into the code and this is how I had done on my code, but
I was having problems when adding a Panel inside a Layer. It wasn't
showing. So my question was regarding containers inside layers. Are
they allowed? Why isn't my Panel showing?
Thanks in advance,
Fidel.
Hi Luan,
I have had a very strange behaviour. I copied the code you have just
provided and execute it. It was working. I was unable to see the
panel, and the text that was supposed to be the top layer, wasn't also
showing. I then commented the panel, and I was able to see the label
inside the panel. Then, I uncommented once again and executed the
program and it was working as it should. It was very strange. I am
unable to reproduce this behaviour, but I will try and see if I find
what caused it.
All the best,
Fidel.
Hi Luan,
No, I am using openjdk. I actually thought that it might be related to
the runtime itself. I am running it on Ubuntu 9.04. I will do quite a
few tests to see if I can reproduce the problem. It may have been
cached somewhere.
Now, there is one thing that I noticed in order to have Aria run with
openjdk or the sun sdk itself. I didn't know that you were using the
swingx components. You do not mention in the documentation, so I never
thought you would require extra libraries. But I am taking notes of
all of this so that I can write the first tutorial, on how to setup
the aria environment using the command line.
I am doing quite a bit of experiments and may come with some questions.
All the best,
Fidel.
On Thu, Aug 6, 2009 at 8:55 PM, Luan O'Carroll<luan.o...@gmail.com> wrote:
>
> Hi Fidel,
>
> In the latest code I have just reduced the dependency on the SwingX
> painters so that it should only be required if a SwingX painter is
> actually used. The example now runs without the SwingX library. The
> code is in SVN if you need it.
>
Thanks!
Fidel.