With multiple players only the first created is in the foreground

Using JMF 2.1.1, I can create multiple players. There's some fishy behavior though. The application has a JFrame, with a JTabbedPane. Within the JTabbedPane, there are a number of JInternalFrame's - each containing a lightweight Player.
1. The first created player with always be in the foreground. Selecting other players, or moving them around the screen does not bring the video to the foreground. In fact, if they get cascaded, the video is always seen in the order the players were created.
Is there a way to bring a player into the foreground?
2. Moving the JInternalFrame's around the visible area, it behaves strangely at the edges of the application area. The video can actually overlap slightly, the boundary of the JTabbedPane, for example.
thanks in advance
gene
2.

I have found the root of my problem: you cannot mix heavy and lightweight components very easily. The description at
http://java.sun.com/products/jfc/tsc/articles/mixing/
describes and has perfect examples of what is happening to me. The Player method getVisualComponent() returns a java.awt.Component, and that's the problem!
The heavy weight awt objects are over writing the light weight swing components.
damn! Anybody know how to change that? I already use the "lightweight renderer" hint in the manager. Trying to cast the player to javax.swing.JComponent will compile, but bombs at run-time. I'd hate to switch over to all heavyweight awt components just to fix this up.

Similar Messages

  • I installed the CC trial with an error window saying: Could not create the file '/Users/dranim/Library/Preferences/Adobe/After Effects/13.2/dummy'.  That was the first window.   Heres the second: After Effects can't continue: unexpected failure during app

    I installed the CC trial with an error window saying: Could not create the file '/Users/dranim/Library/Preferences/Adobe/After Effects/13.2/dummy'.  That was the first window.   Heres the second: After Effects can’t continue: unexpected failure during application startup  I paid for the month subscription of 29.99. It claims it is downloading again?! Am I missing something here? Why is this process so complicated? I need to get this resolved asap and start working.

    I originally had Adobe Photoshop Extended, then upgraded to the Production Suite. I ran the Adobe Cleaner, and that uninstalled most Adobe products, including my existing Adobe install, and then I re-installed everything with the same error code. Since CS4 came with CS5, I've installed AE CS4, but would really like to upgrade because I'm new to Creative Suite, and not sure how CS4 integrates with CS5...CS4 After Effects installed perfectly. I do have a 64 bit system, and installing to an OCZ Vertex 2....every other suite installs perfectly, except AE. And I think that is the coolest program in the Suite. I thank you all so much for taking the time to help, I really want to get AECS5 running...I did try to install after doing the recommended items Adobe suggests for Exit Codes 6 and 7, including turning off many startups...
    I'm baffled....
    Ben

  • I uploaded 3 audiobooks from iTunes to my iPhone 5 with the latest ios7 on it. Each of them only plays the first 15 mins of the playback and then silence, the bar shows the book is still playing but no sound, any ideas? Thanks

    I uploaded 3 audiobooks from iTunes to my iPhone 5 with the latest ios7 on it. Each of them only plays the first 15 mins of the playback and then silence, the bar shows the book is still playing but no sound, any ideas? Thanks

    What happens when playing the same books in iTunes. Is there sound after 15 min?
    If also silent in iTunes, check the info tab where you can see the item is an audiobook, etc. Check the volume bar, this normally is on the zero point.
    When an audio book is really low in audio, I tend to move this to the plus side (+1=max), but for some strange reason this bar was at -1 in some books I had and they also seemed to play in absolute silence.

  • TS4020 family with multiple apple accounts, can we create a secondary "family" account?

    family with multiple apple accounts, can we create a secondary "family" account?

    You can perfectly well create a new separwate iCloud account: for this you will need to create a new Apple ID for which you will need a non-Apple email address you haven't used elsewhere for iCloud.
    That done, everyone can sign into it in System Preferences (or Settings)>Mail, Contacts & Calendars and enable the various data types in the checklist there. This is a 'secondary account': its email, Contacts and Calendars will appear alongside those in the existing 'primary account' but you don't get 'push' email (it's checked periodically) and it cannot use PhotoStream.
    Note that if you've been using the same device to create other accounts, there is a limit of three iCloud accounts which can be created by any one device, so if that's been reached you would have to use another device: once done the first device can sign into it perfectly well.

  • How do I create a 1d array that takes a single calculation and insert the result into the first row and then the next calculation the next time the loop passes that point and puts the results in thsecond row and so on until the loop is exited.

    The attached file is work inprogress, with some dummy data sp that I can test it out without having to connect to equipment.
    The second tab is the one that I am having the problem with. the output array from the replace element appears to be starting at the index position of 1 rather than 0 but that is ok it is still show that the new data is placed in incrementing element locations. However the main array that I am trying to build that is suppose to take each new calculation and place it in the next index(row) does not ap
    pear to be working or at least I am not getting any indication on the inidcator.
    Basically what I am attempting to do is is gather some pulses from adevice for a minute, place the results for a calculation, so that it displays then do the same again the next minute, but put these result in the next row and so on until the specifiied time has expired and the loop exits. I need to have all results displayed and keep building the array(display until, the end of the test)Eventually I will have to include a min max section that displays the min and max values calculated, but that should be easy with the min max function.Actually I thought this should have been easy but, I gues I can not see the forest through the trees. Can any one help to slear this up for me.
    Attachments:
    regulation_tester_7_loops.vi ‏244 KB

    I didn't really have time to dig in and understand your program in depth,
    but I have a few tips for you that might things a bit easier:
    - You use local variables excessively which really complicates things. Try
    not to use them and it will make your life easier.
    - If you flowchart the design (very similar to a dataflow diagram, keep in
    mind!) you want to gather data, calculate a value from that data, store the
    calculation in an array, and loop while the time is in a certain range. So
    theres really not much need for a sequence as long as you get rid of the
    local variables (sequences also complicate things)
    - You loop again if timepassed+1 is still less than some constant. Rather
    than messing with locals it seems so much easier to use a shiftregister (if
    absolutely necessary) or in this case base it upon the number of iterations
    of the loop. In this case it looks like "time passed" is the same thing as
    the number of loop iterations, but I didn't check closely. There's an i
    terminal in your whileloop to read for the number of iterations.
    - After having simplified your design by eliminating unnecessary sequence
    and local variables, you should be able to draw out the labview diagram.
    Don't try to use the "insert into array" vis since theres no need. Each
    iteration of your loop calculates a number which goes into the next position
    of the array right? Pass your result outside the loop, and enable indexing
    on the terminal so Labview automatically generates the array for you. If
    your calculation is a function of previous data, then use a shift register
    to keep previous values around.
    I wish you luck. Post again if you have any questions. Without a more
    detailed understanding of your task at hand it's kind of hard to post actual
    code suggestions for you.
    -joey
    "nelsons" wrote in message
    news:[email protected]...
    > how do I create a 1d array that takes a single calculation and insert
    > the result into the first row and then the next calculation the next
    > time the loop passes that point and puts the results in thsecond row
    > and so on until the loop is exited.
    >
    > The attached file is work inprogress, with some dummy data sp that I
    > can test it out without having to connect to equipment.
    > The second tab is the one that I am having the problem with. the
    > output array from the replace element appears to be starting at the
    > index position of 1 rather than 0 but that is ok it is still show that
    > the new data is placed in incrementing element locations. However the
    > main array that I am trying to build that is suppose to take each new
    > calculation and place it in the next index(row) does not appear to be
    > working or at least I am not getting any indication on the inidcator.
    >
    > Basically what I am attempting to do is is gather some pulses from
    > adevice for a minute, place the results for a calculation, so that it
    > displays then do the same again the next minute, but put these result
    > in the next row and so on until the specifiied time has expired and
    > the loop exits. I need to have all results displayed and keep building
    > the array(display until, the end of the test)Eventually I will have to
    > include a min max section that displays the min and max values
    > calculated, but that should be easy with the min max function.Actually
    > I thought this should have been easy but, I gues I can not see the
    > forest through the trees. Can any one help to slear this up for me.

  • When I print a web page it only prints the first page and not the rest of the web page below the page break.

    When I print a web page firefox will only print the first page, all of the content to the first page break and nothing past that.
    How can I change the settings so that it will print more than on page?

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Zoom -> click "Reset" -> Page Style -> select "Basic Page Style"
    -> go to View Menu -> Toolbars -> unselect All Unwanted toolbars
    -> go Tools Menu -> Clear Recent History -> '''Time range to clear: select EVERYTHING''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache, Site Preferences''' -> click "Clear Now"
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • I bought a new album off of iTunes the wifi wasn't strong so I left my computer on as it was downloading and went to sleep. This morning I went to listen to the songs and some of the songs will only play the first 50 sec or the first minute? How do i fix?

    I bought a new album off of iTunes the wifi wasn't strong so I left my computer on as it was downloading and went to sleep. This morning I went to listen to the songs and some of the songs will only play the first 50 sec or the first minute? How do i fix it or refresh them so i can listen to them fully?
    How do I get the songs to fully play? Or can i refresh the songs and redownload them?

    See Repair security permissions for iTunes for Windows.
    tt2

  • I have a 3rd gen iPod touch and I downloaded the most recent itunes, ever since I did, only the first song syncs to the ipod. As soon as it gets to the second, it xtill says its syncing. However, nothing happens. How do I fix this?

    I have a 3rd gen iPod touch and I downloaded the most recent itunes, ever since I did, only the first song syncs to the ipod. As soon as it gets to the second, it still says its syncing. However, nothing happens. How do I fix this? I have restored and updated the ipod. I have the new iTunes. I have restarted my computer checked the connection and everything.

    Try:
    - Reset the iOS device. Nothing will be lost
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Unsync all music and resync
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                 
    iOS: How to back up           
    - Restore to factory settings/new iOS device.

  • I plugged my ipad 2 into the computer for the first time and all the music from the itunes converted on however now it wont delete it comes up with 'ping' next to the song

    i plugged my ipad 2 into the computer for the first time and all the music from the itunes converted on however now it wont delete it comes up with 'ping' next to the song

    Have you carefully worked through each and every single suggestion in this Apple support document?
    iPod not recognized in 'My Computer' and in iTunes for Windows
    B-rock

  • TS3297 I downloaded a song but it did not download properly and only the first 5 seconds of the song plays.  How do you fix this and get the entire song downloaded?

    I purchased a song and when downloading there was an error.  No error on the other 8 songs just one and now only plays the first 5 seconds of the song.  How do you fix this and do the download again so the entire song is downloaded?  Thanks!

    Delete the song from your library and re-download it from the Purchases section of the iTunes Store.
    http://support.apple.com/kb/PH12491

  • When I add a file already on my computer to the iTunes Library, why does it only copy over the first 30 characters of the title?

    I noticed that when I tried importing songs to iTunes (unprotected) either via "Add File to Library" or "Automatically add to iTunes", only the first 30 characters of the song title is copied over to iTunes. Is there a way to change this? Is this a default setting?
    Thanks!
    -Oscar

    Just a guess about something to look at - check the color settings in your After Effects project.  If you increase the bit depth to 16 or 32 bits per channel and check your color management settings, you may have a better result.  I'm a bit clueless about the various options under Color Settings, but maybe you will hit upon something that works.

  • BUG - First create actually replaces the first row of the table

    I would like to be able to add new rows to a table and bound the create function to the button. The issue I encounter is the first time I press the button it instead actually changes the first row to be the newly inserted row instead of adding a new row. I have attached the code for my button below, it is very strange. Am I doing something incorrectly? I have the table I'm inserting into bound to the page and I can see the row actually get replaced even though all I am calling is a create method. Is this a bug? Any help would be appreciated. Code is below, I am simply setting the values for the create method prior to the call to the operationbinding:
    public String appendButton_action() {
    BindingContainer bindings;
    bindings = getBindings();
    FacesContext ctx = FacesContext.getCurrentInstance();
    Application app = ctx.getApplication();
    ctx = FacesContext.getCurrentInstance();
    app = ctx.getApplication();
    ValueBinding bind = app.createValueBinding("#{processScope.runId}");
    String runId = (String) bind.getValue(ctx).toString();
    bind = app.createValueBinding("#{bindings.RunId.inputValue}");
    bind.setValue(ctx, runId);
    bind = app.createValueBinding("#{processScope.ConfigurationId}");
    String configId = (String) bind.getValue(ctx).toString();
    bind = app.createValueBinding("#{bindings.ConfigId.inputValue}");
    bind.setValue(ctx, configId);
    OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("Create");
    operationBinding.execute();
    operationBinding = (OperationBinding)bindings.getOperationBinding("Commit");
    operationBinding.execute();
    return null;
    }

    I am very disturbed that nobody cares there is a bug in ADF using Oracle BC's. Can somebody respond? It should be impossible to run a create method and get an update on the database without something being wrong in the persistence layer. I understand this is an in-depth question but there should be some resource available to resolve actual issues or at least provide some insight.

  • I downloaded a song and now it will only plays the first 2 minutes of the song, how can I fix this?

    I downloaded two songs and they will only play the first 2 minutes of the songs, how do I fix this?

    I'd report the problem to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the items that are not playing properly. If you can't see "Report a Problem" next to the entries, click the "Report a problem" button. Now click the "Report a Problem" links next to the items.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • During receipt validation; the first step ie, adding the files generated by asn1c tool causes errors.. especially with the

    During receipt validation; the first step ie, adding the files generated by asn1c tool causes errors.. especially with the #include statements
    --No such directory or file..
    Why this is happening??

    I am adding one more thing..
    Do we need to mention any linkage or frameworks or such while we are adding a .c file to
    Cocoa Mac OS Project

  • How to: Schedule a job to run on the first business day of the month

    In Oracle 10.2.0.3, is there a way to schedule a repeating job to run on the first business day of the month? For example, if the first of the month falls on a weekend (such as Saturday, 11/01/2008), I would like the job to run automatically on Monday (for example, 11/03/2008) instead.

    set serveroutput on
    begin
      print_dates('FREQ=MONTHLY;BYDAY=MON,TUE,WED,THU,FRI;BYSETPOS=1;',
          to_timestamp_tz('01-JAN-2008 12:00:00','DD-MON-YYYY HH24:MI:SS'), 12);
    end;
    Gives:
    TUE 01-JAN-2008 (001-01) 12:00:00 -07:00 -07:00
    FRI 01-FEB-2008 (032-05) 12:00:00 -07:00 -07:00
    MON 03-MAR-2008 (063-10) 12:00:00 -07:00 -07:00
    TUE 01-APR-2008 (092-14) 12:00:00 -07:00 -07:00
    THU 01-MAY-2008 (122-18) 12:00:00 -07:00 -07:00
    MON 02-JUN-2008 (154-23) 12:00:00 -07:00 -07:00
    TUE 01-JUL-2008 (183-27) 12:00:00 -07:00 -07:00
    FRI 01-AUG-2008 (214-31) 12:00:00 -07:00 -07:00
    MON 01-SEP-2008 (245-36) 12:00:00 -07:00 -07:00
    WED 01-OCT-2008 (275-40) 12:00:00 -07:00 -07:00
    MON 03-NOV-2008 (308-45) 12:00:00 -07:00 -07:00
    MON 01-DEC-2008 (336-49) 12:00:00 -07:00 -07:00
    and the print_dates function is (10.2):
    create or replace procedure print_dates
      cal_string in varchar2,
      start_date in timestamp with time zone,
      nr_of_dates in pls_integer
    is
      date_after timestamp with time zone := start_date - interval '1' second;
      next_execution_date timestamp with time zone;
    begin
      dbms_output.put_line('  -->');
      for i in 1 .. nr_of_dates
      loop
        dbms_scheduler.evaluate_calendar_string
         (cal_string, start_date, date_after, next_execution_date);
        dbms_output.put_line(to_char(next_execution_date,
                        'DY DD-MON-YYYY (DDD-IW) HH24:MI:SS TZD TZH TZR'));
        date_after := next_execution_date;
      end loop;
    end;
    [\pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for