Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JMF: video always on top issue

Reply
Thread Tools

JMF: video always on top issue

 
 
SirThanxALot
Guest
Posts: n/a
 
      11-17-2003
Programmers of the world,

Here's the issue

I have a JFrame:
The contentPane is a Component ( new Component() )
On top of that I display a video file, it turned out that this is a
com.sun.media.renderer.video.HeavyComponent
Now, i want some JLabels to be displayed on top of that, partially covering
the video
To achieve that, I add the pictures with something like
getContentPane.add(new Label("blablabla",0));
I expected the video to be partially covered by my Labels, however
the labels are displayed under the movie.

I tried to figure out what was goiing on, so i tried to layer 2 movies
and it turned out that with the same code, sometimes the first movie was on
top and sometimes the other
I think this is explainable in terms of buffering: the latest movie gets the
component on the top.

any ideas to work around this?

kind regards,
SirThanxALot


 
Reply With Quote
 
 
 
 
ScoobyCed
Guest
Posts: n/a
 
      11-17-2003
"SirThanxALot" <> wrote
> Programmers of the world,
>
> Here's the issue
>
> I have a JFrame:
> The contentPane is a Component ( new Component() )
> On top of that I display a video file, it turned out that this is a
> com.sun.media.renderer.video.HeavyComponent
> Now, i want some JLabels to be displayed on top of that, partially

covering
> the video
> To achieve that, I add the pictures with something like
> getContentPane.add(new Label("blablabla",0));
> I expected the video to be partially covered by my Labels, however
> the labels are displayed under the movie.
>
> I tried to figure out what was goiing on, so i tried to layer 2 movies
> and it turned out that with the same code, sometimes the first movie was

on
> top and sometimes the other
> I think this is explainable in terms of buffering: the latest movie gets

the
> component on the top.
>
> any ideas to work around this?
>
> kind regards,
> SirThanxALot


Some sample code would be better. Now you may try to double-buffer the video
picture, and update the JFrame.

Scooby-Ced


 
Reply With Quote
 
 
 
 
SirThanxALot
Guest
Posts: n/a
 
      11-17-2003
you are right
http://www.student.kuleuven.ac.be/~m9922490/gui/
there is a zip file with the code

"ScoobyCed" <> schreef in bericht
news:3fb8dad0$0$10417$...
> "SirThanxALot" <> wrote
> > Programmers of the world,
> >
> > Here's the issue
> >
> > I have a JFrame:
> > The contentPane is a Component ( new Component() )
> > On top of that I display a video file, it turned out that this is a
> > com.sun.media.renderer.video.HeavyComponent
> > Now, i want some JLabels to be displayed on top of that, partially

> covering
> > the video
> > To achieve that, I add the pictures with something like
> > getContentPane.add(new Label("blablabla",0));
> > I expected the video to be partially covered by my Labels, however
> > the labels are displayed under the movie.
> >
> > I tried to figure out what was goiing on, so i tried to layer 2 movies
> > and it turned out that with the same code, sometimes the first movie was

> on
> > top and sometimes the other
> > I think this is explainable in terms of buffering: the latest movie gets

> the
> > component on the top.
> >
> > any ideas to work around this?
> >
> > kind regards,
> > SirThanxALot

>
> Some sample code would be better. Now you may try to double-buffer the

video
> picture, and update the JFrame.
>
> Scooby-Ced
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
alt.video.dvd, alt.video.dvd.software, alt.video.dvd.tech, rec.video.dvd.tech winterheat@gmail.com DVD Video 1 06-04-2006 12:43 PM
Valign=top doesn't always work =?Utf-8?B?QXJuZQ==?= ASP .Net 2 12-07-2004 01:44 AM
valign=top doesn't always work =?Utf-8?B?QXJuZQ==?= ASP .Net 2 12-06-2004 10:21 PM
Trying to create a CSS box that is always is always the width of an image placed inside it (and no wider) Deryck HTML 4 06-22-2004 08:25 PM
how to fix it:SelectBox always on top of dropdown menu item. Matthew ASP .Net 3 08-06-2003 05:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57