Re: Automatic resizing of a Container

Frederic Gedin <[email protected]>
Newsgroups gmane.comp.embedded.carlsbad-cubes
Message-ID <[email protected]>
masukomi a écrit :

>
> -Kate Rhodes
> Open source consultant & Java developer
> http://www.masukomi.org
> On Jun 2, 2004, at 9:32 AM, Frederic Gedin wrote:
>
> I didn't mean replace vbox with panel I meant put those two panels in 
> a panel (which would be inside the vbox). Think of panels like tables 
> in html you just embed tables inside tables inside tables until you 
> get the layout you want, each inner table managing some layout portion 
> of the whole. Do the same thing with panels.
>
I tried as you said but did not succeed. It acts as if the setSize 
method was not invoked.
In addition, I noticed that adding the video visual component into the 
video panel makes the video panel translate horizontally and go back to 
its place when the visual component is removed.

This behavior looking very strange, I made some debug and discovered 
that the video component returned by JMF returns Dimension(0, 0) when 
invoking its getSize() method.
In addition, it seems also that setSize is not efficient but 
setPreferredSize + setMaximumSize works fine.
So my problem seems to be fixed but I still don't understand why setSize 
does not work. In addition, I need to retrieve the real size of the 
video component but this is an other story.

Regards.

Frédéric
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.