Results 1 to 3 of 3
  1. #1
    nowy is offline Member
    Join Date
    Nov 2009
    Posts
    9
    Rep Power
    0

    Default javax.media.Player and JMenu problem

    Hello,

    I'm writing some program for video streaming using JMF and I've got a problem with javax.media.Player and JMenu used in my application. As you can see on screens below when Player is active it's always covering JMenu. Is there any solution to force Player "stay down" under other components?

    Hello,

    I'm writing some program for video streaming using JMF and I've got a problem with javax.media.Player and JMenu used in my application. As you can see on screens below when Player is active it's always covering JMenu. Is there any solution to make Player "stay down" under other components?

    Without running Player: img.polsl.eu/i,eb02f.jpg

    After Player starts to work (the black thing over the menu is a Player component from player.getVisualComponent()): img.polsl.eu/i,35b5b.jpg

    Sorry but I can't post images yet :(

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,234
    Rep Power
    7

    Default

    Sounds like the Player is an AWT component which always paints on top of other Swing components.

    However, if the only issue is the popup menu then you should be able to use:

    Java Code:
    JPopupMenu.setDefaultLightWeightPopupEnabled(false);
    Otherwise you will need to update the JDK to a newer version as indicated in the article on Mixing Heavyweight and Lightweight Components (revisited)
    Last edited by camickr; 11-09-2009 at 11:49 PM.

  3. #3
    nowy is offline Member
    Join Date
    Nov 2009
    Posts
    9
    Rep Power
    0

    Default

    Great! Thanks a lot! Your solution works just fine for me. Thanks once again :)

Similar Threads

  1. Where is "javax.media.j3d"?
    By ScottVal in forum Advanced Java
    Replies: 5
    Last Post: 09-09-2010, 10:01 AM
  2. Replies: 0
    Last Post: 11-04-2009, 09:09 PM
  3. javax.xml.ws.Service problem
    By magnum99 in forum Advanced Java
    Replies: 0
    Last Post: 10-08-2009, 06:10 PM
  4. javax.media.j3d.IllegalRenderingStateException
    By fred in forum Advanced Java
    Replies: 1
    Last Post: 07-24-2007, 01:53 AM
  5. javax.media library
    By Heather in forum Eclipse
    Replies: 1
    Last Post: 07-08-2007, 12:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •