Stopping an old player and starting a new player

Hi;
I'm designing a media player using jmf,i am not able to stop and old player and start a new one,
the code for starting a new player lies in another class whose constructor has been called in the class where the gui is designed.
please tell me how to do it.

well thats right,but
how do you do it in this case
ill give a code snippet
import javax.media.*;
class a{
//build a constructor
public a(){
Player player;
//Rest of the code(for eg creating JFrame,call to the visual components and control components etc
Now what i need is,whenever i make a call to this constructor in another class,it is first checked that if there is any currently running player or not.If there is any then close it and start this new player call.
Please tell me how to do this.
Thank You.

Similar Messages

  • After Upgrading to 10.6.8 my aperture app starts but hangs trying to read the Lib. I removed the old lib and start with new. but still have the problem. 10.6.8 also made my Shark FX7 do the same thing. Any Ideas? Thanks

    After Upgrading to 10.6.8 my aperture app starts but hangs trying to read the Lib. I removed the old lib and start with new. but still have the problem. 10.6.8 also made my Shark FX7 do the same thing. Any Ideas? Thanks

    Verifying volume “Macintosh HD”
    Performing live verification.
    Checking Journaled HFS Plus volume.
    Checking extents overflow file.
    Checking catalog file.
    Checking multi-linked files.
    Checking catalog hierarchy.
    Checking extended attributes file.
    Checking volume bitmap.
    Checking volume information.
    The volume Macintosh HD appears to be OK.

  • After I updated iTunes, do I need to delete the old songs and start a new account

    When i finished updating iTunes I still can't download apps or music?

    What do you mean by "download" Sync from iTunes on your computer to the iPod?
    What exactly happens when yo try?

  • Time capsule was back-up stopped halfway and started a new back-up

    I was backing up 220+ GB when it stopped at 120+ GB and started a new back-up of 85+ GB. Is this normal?

    Doesn't sound normal no..
    Time Machine is its own unique way of doing things.
    Verify the backup.
    See A5 http://pondini.org/TM/Troubleshooting.html
    And load the widget, A1 so you actually know .. kind of.. what the heck TM is doing.

  • How do I delete my old gamecenter profile and start a new one

    How do I delete my old Gamecenter profile and start a new one?

    I suggest changing the existing ID rather than creating a new one, all purchases are forever linked to the ID that bought and can never be transferred, you can change all detauils about your ID here:
    http://appleid.apple.com
    Read this
    http://support.apple.com/kb/HT5621

  • How stopping a version and start a new one from the previous

    Hi,
    May be someone could help me to erase my basics questions on Robosource control.
    We have to manage several versions of our product documentation and It is not clear how it is managed by robosource control. The documentation tells what can do RBSC (and it seems to be what we need) but they do not explain how to do it (prerequisites, ordered steps, etc), and I do not really succeeded. May be I missed the basics.
    All our projects are added to Robosource control 3 from RoboHelp7 Html from a local directory.
    In the database, we inserted them in a directory corresponding to a version V01.r01.
    I would like to stop this version and start a new one V01.02 with the projects which are V01.01. What is the best way to do this:
    Do I just label the directory V01.01 and "Pin" it ?  In that way how can I recover all the projects and files that were labelled and pinned for version V01.01, if I need them later ?
    Copy and rename directory V01.01 into V01.02 to continue the file modifications without modifiying the same project in V01.01?
    My questions are quite similar to Kristen's questions.
    Please can anyone help ! Thanks !

    Then the (App) tabs from that window are lost unless you can restore an older copy of the sessionstore.js file (Time Machine?) that has that lost window.
    *http://kb.mozillazine.org/sessionstore.js

  • Is it ok to leave my old photos in Aperature and start with new photos in Lightroom?  MacPro with 2 x 2.26 Ghz Quad-Core Intel Xeon processor, 6 GB memory, 1 TB harddrive.

    Is it ok to leave my old photos in Aperature and start with new photos in Lightroom?  MacPro with 2 x 2.26 Ghz Quad-Core Intel Xeon processor, 6 GB memory, 1 TB harddrive?
    Or should I transfer them to Lightroom?

    That's really a personal preference. Support for Aperture is coming to an
    end and you may find yourself unable to get to theses photos in the future
    in the case of a HDD crash if you can't get the software to reinstall.
    Faced with that prospect, I would probably put it on my list of things to
    do when I am feeling really bored and looking for something to amuse myself
    with. You can export your Aperture photos in their original format to a
    folder on your desktop and then import them into Lightroom. Use the copy
    option on the import to save the photos in a new folder within your
    Lightroom catalog.

  • Hi everyone. i need to delete me itunes account and start a new one. this is get old pics, msg's etc of my old broken phone. anyone got a step by step ?

    hi everyone. i need to delete my itunes account and start a new one. i dropped my old phone and bought a new one as i could here finger tap noises but couldn't see anything. anyone have a step by step guide to deleting the account ?

    Why do you think you need to delete your iTunes account? Why don't you want to use it for the new phone?

  • I have a mid2009 MacBook Pro for which I have been using a USB WD HD for Time Machine.  I'd like to get a wireless HD  and start a new Time Machine backup for this Mac and retire the 5  year old WD drive.  Can I start over?

    I have a mid2009 MacBook Pro running Mavericks for which I have been using a USB WD HD for Time Machine.  I'd like to get a wireless HD  and start a new Time Machine backup for this Mac and retire the 5  year old WD drive.  Can I start over?

    no archive/ backup is perfect, HD clones can be set to make incremental additions, same as time machine however, though they are more time involved in doing so.
    See the + and - of all data backup/ archives below and "spread it around".... or the "dont put your eggs all in one basket" philosophy.
    Peace
    Data Storage Platforms; their Drawbacks & Advantages
    #1. Time Machine / Time Capsule
    Drawbacks:
    1. Time Machine is not bootable, if your internal drive fails, you cannot access files or boot from TM directly from the dead computer.
    2. Time machine is controlled by complex software, and while you can delve into the TM backup database for specific file(s) extraction, this is not ideal or desirable.
    3. Time machine can and does have the potential for many error codes in which data corruption can occur and your important backup files may not be saved correctly, at all, or even damaged. This extra link of failure in placing software between your data and its recovery is a point of risk and failure. A HD clone is not subject to these errors.
    4. Time machine mirrors your internal HD, in which cases of data corruption, this corruption can immediately spread to the backup as the two are linked. TM is perpetually connected (or often) to your computer, and corruption spread to corruption, without isolation, which TM lacks (usually), migrating errors or corruption is either automatic or extremely easy to unwittingly do.
    5. Time Machine does not keep endless copies of changed or deleted data, and you are often not notified when it deletes them; likewise you may accidently delete files off your computer and this accident is mirrored on TM.
    6. Restoring from TM is quite time intensive.
    7. TM is a backup and not a data archive, and therefore by definition a low-level security of vital/important data.
    8. TM working premise is a “black box” backup of OS, APPS, settings, and vital data that nearly 100% of users never verify until an emergency hits or their computers internal SSD or HD that is corrupt or dead and this is an extremely bad working premise on vital data.
    9. Given that data created and stored is growing exponentially, the fact that TM operates as a “store-it-all” backup nexus makes TM inherently incapable to easily backup massive amounts of data, nor is doing so a good idea.
    10. TM working premise is a backup of a users system and active working data, and NOT massive amounts of static data, yet most users never take this into consideration, making TM a high-risk locus of data “bloat”.
    11. In the case of Time Capsule, wifi data storage is a less than ideal premise given possible wireless data corruption.
    12. TM like all HD-based data is subject to ferromagnetic and mechanical failure.
    13. *Level-1 security of your vital data.
    Advantages:
    1. TM is very easy to use either in automatic mode or in 1-click backups.
    2. TM is a perfect novice level simplex backup single-layer security save against internal HD failure or corruption.
    3. TM can easily provide a seamless no-gap policy of active data that is often not easily capable in HD clones or HD archives (only if the user is lazy is making data saves).
    #2. HD archives
    Drawbacks:
    1. Like all HD-based data is subject to ferromagnetic and mechanical failure.
    2. Unless the user ritually copies working active data to HD external archives, then there is a time-gap of potential missing data; as such users must be proactive in archiving data that is being worked on or recently saved or created.
    Advantages:
    1. Fills the gap left in a week or 2-week-old HD clone, as an example.
    2. Simplex no-software data storage that is isolated and autonomous from the computer (in most cases).
    3. HD archives are the best idealized storage source for storing huge and multi-terabytes of data.
    4. Best-idealized 1st platform redundancy for data protection.
    5. *Perfect primary tier and level-2 security of your vital data.
    #3. HD clones (see below for full advantages / drawbacks)
    Drawbacks:
    1. HD clones can be incrementally updated to hourly or daily, however this is time consuming and HD clones are, often, a week or more old, in which case data between today and the most fresh HD clone can and would be lost (however this gap is filled by use of HD archives listed above or by a TM backup).
    2. Like all HD-based data is subject to ferromagnetic and mechanical failure.
    Advantages:
    1. HD clones are the best, quickest way to get back to 100% full operation in mere seconds.
    2. Once a HD clone is created, the creation software (Carbon Copy Cloner or SuperDuper) is no longer needed whatsoever, and unlike TM, which requires complex software for its operational transference of data, a HD clone is its own bootable entity.
    3. HD clones are unconnected and isolated from recent corruption.
    4. HD clones allow a “portable copy” of your computer that you can likewise connect to another same Mac and have all your APPS and data at hand, which is extremely useful.
    5. Rather than, as many users do, thinking of a HD clone as a “complimentary backup” to the use of TM, a HD clone is superior to TM both in ease of returning to 100% quickly, and its autonomous nature; while each has its place, TM can and does fill the gap in, say, a 2 week old clone. As an analogy, the HD clone itself is the brick wall of protection, whereas TM can be thought of as the mortar, which will fill any cracks in data on a week, 2-week, or 1-month old HD clone.
    6. Best-idealized 2nd platform redundancy for data protection, and 1st level for system restore of your computers internal HD. (Time machine being 2nd level for system restore of the computer’s internal HD).
    7. *Level-2 security of your vital data.
    HD cloning software options:
    1. SuperDuper HD cloning software APP (free)
    2. Carbon Copy Cloner APP (will copy the recovery partition as well)
    3. Disk utility HD bootable clone.
    #4. Online archives
    Drawbacks:
    1. Subject to server failure or due to non-payment of your hosting account, it can be suspended.
    2. Subject, due to lack of security on your part, to being attacked and hacked/erased.
    Advantages:
    1. In case of house fire, etc. your data is safe.
    2. In travels, and propagating files to friends and likewise, a mere link by email is all that is needed and no large media needs to be sent across the net.
    3. Online archives are the perfect and best-idealized 3rd platform redundancy for data protection.
    4. Supremely useful in data isolation from backups and local archives in being online and offsite for long-distance security in isolation.
    5. *Level-1.5 security of your vital data.
    #5. DVD professional archival media
    Drawbacks:
    1. DVD single-layer disks are limited to 4.7Gigabytes of data.
    2. DVD media are, given rough handling, prone to scratches and light-degradation if not stored correctly.
    Advantages:
    1. Archival DVD professional blank media is rated for in excess of 100+ years.
    2. DVD is not subject to mechanical breakdown.
    3. DVD archival media is not subject to ferromagnetic degradation.
    4. DVD archival media correctly sleeved and stored is currently a supreme storage method of archiving vital data.
    5. DVD media is once written and therefore free of data corruption if the write is correct.
    6. DVD media is the perfect ideal for “freezing” and isolating old copies of data for reference in case newer generations of data become corrupted and an older copy is needed to revert to.
    7. Best-idealized 4th platform redundancy for data protection.
    8. *Level-3 (highest) security of your vital data. 
    [*Level-4 data security under development as once-written metallic plates and synthetic sapphire and likewise ultra-long-term data storage]
    #6. Cloud based storage
    Drawbacks:
    1. Cloud storage can only be quasi-possessed.
    2. No genuine true security and privacy of data.
    3. Should never be considered for vital data storage or especially long-term.
    4. *Level-0 security of your vital data. 
    Advantages:
    1. Quick, easy and cheap storage location for simplex files for transfer to keep on hand and yet off the computer.
    2. Easy source for small-file data sharing.

  • I have recently started using an old Nano and purchased some new songs. When I go to sync it wants to erase other songs to download new. Is there a way to just sync new songs to ipod without erasing existing music on devise?

    I have recently started using an old Nano and purchased some new songs. When I go to sync it wants to erase other songs to download new. Is there a way to just sync new songs to ipod without erasing existing music on devise?

    Syncing shouldn't trouch you photos unless you have photos in a Photo Library album.  These would be photos that were synced to your phone from your computer.  If you do have any, you'll need to use an app like PhotoSync to transfer them to your computer prior to syncing.
    If you prefer to backup your camera roll photos prior to syncing, open iTunes and go to Preferences>Devices and check "Prevent...from syncing automatically".  Then connect your phone to your computer and import them as explained here: http://support.apple.com/kb/HT4083.
    Then, to minimize data loss, follow the steps in this user tip: https://discussions.apple.com/docs/DOC-3141.  To follow the steps, first open iTunes and go to View>Show Sidebar.  Also, Transfer Purchases is now located in File>Devices.

  • How do I delete and existing itunes account on my iphone and start a new account

    how do I delete and existing itunes account on a phone that i have transfered to and start a new one

    You can't. All you can do is stop using it. Anything you have purchased using the old Apple ID is permanently connected to it and cannot be updated or re-downloaded when using the new Apple ID.

  • I have a new pc, and when updating ipad software it will erase all apps etc, is there any way to stop this from happening and make my new laptop my ipads "home" pc???

    I have a new laptop, and have copied over my existing itunes libary, but when i connect my ipad, and go to update the software to the new version it warns me that it will wipe all my apps etc..... How can i stop this from happening and make my new laptop the "home" for my ipad??
    Any help gratefully received! :-)

    Macs use an application called Migration Assistant to copy material from the old Mac to the new one. The macs are connected together and each runs Migration Assistance and the user chooses what stuf to copy onto the new Mac.
    Unfortunately I do not know how to do this between pcs or between a Mac and a Pf or even if it's even possible.

  • How do I upload all my apps, calendars, etc from old iPad and iPhone to new iPad air?

    How do I upload all my apps, calendars, etc from old iPad and iPhone to new iPad air?

    provided you are using the same Apple ID
    for Apps
      just launch the App Store App
        tap on Purchased at the bottom of the page.
          tap on particular Apps you want to download and install..
    for other items
      launch the Settings App
        scroll left pane down a bit, just below Privacy
          tap on iCloud
            Turn on iCloud sharing for particular items
              Contacts, Calendars, Mail, Safari (favorites)
    Turn on iCloud sharing on your old devices and your new devices.
      Wait 10 or 15 minutes, or so depending on your WiFi network..
        You should start to see these shared items appear on your new device..
    You can turn iCloud sharing off on your old devices (and new device)
      after you are confident enough items have transferred.

  • Before 4.0 I could right click on an open tab and start a new tab. Now the option to do so is no longer on the right click menu, and I have to click the plus sign.

    Before 4.0 I could right click on an open tab and start a new tab. Now the option to do so is no longer on the right click menu, and I have to click the plus sign if I want to open a new tab. It is kind of bugging the hell out of me. Is there a way to fix it other than uninstalling and reinstalling the old firefox? Because this is a big part of the way I browse.

    You can also use ctrl-T or File > New tab (if you have the menubar showing). I can't find an extension that will help you bring back the previous behavior but there probably will be one soon.

  • Can I add a new Ipod Shuffle and start a new playlist under my account if my original Ipod Shuffle is full?

    If my original Ipod Shuffle is full, and I want to get a new Ipod Shuffle and start a new playlist, can this be done without compromising the first playlist?

    Yes.  I have a 1st gen shuffle, a 2nd gen shuffle, and a "bigger" iPod (plus an iPhone).  They can all connect to iTunes at the same time, and be set up independently.
    However, if your old shuffle is "full," you can delete song you no longer want on it and add new songs.  You don't need to get a new shuffle, just to get more space for new songs.

Maybe you are looking for

  • How to control size and clarity of text?

    Since installing Firefox 4, I notice that text is sharper and clearer, but also smaller. I'd gladly give up some screen resolution to have text that's larger and easier to read, just as I used to with Firefox. Small type, no matter how clear, is hard

  • Screen enhancement using BADI not workingin background for program RFRECPSFA520

    Hi Gurus, I implimented the badi BADI_RECP_SF (Enhancement spot BADI_RE_CP_SF) add custom tab with custom field for additional selection criteria.I used the steps provide in BADI documentation. Everything is working fine but when I run the program in

  • Library management with external hard drive

    I have a 120GB external hard drive, where I store all of my music, audiobooks, videos, etc. When I created my iTunes library, everything worked great and I loaded my media into my Video iPod. But, the next time I plugged my external hard drive into m

  • ABOUT FM

    hi friends, how should i pass values or range of values or select-options to function module so that it return value in some itab. with regards

  • R12 GL Set Up

    Hi Here is the scenario: Company is operating in current Version of 11.5.10 and currently in the process of upgradation. current structure : Multiple SOB,1 Legal Entity, OU and Multiple Inventory Org. Not in MRC Question : How does the transactions a