Prevent multiple launch of player object on JTable

I have a JTable with a couple of rows hits data as a result of some searching processing. If I click the play icon button on first column, a audio player will be launched to play a section of audio.
Here is my questions,
1) Some user accidentally double click on the icon, two player objects both are running and both plays wtih a few miliseconds difference. How can I avoid that?
2) How can I only allow one palyer per hits (multiple player allowed with different hits)? Do I need Vector to keep track every player object I launched? Or there is a easy way to do it.
Thanks in advance.

Dont really understand the problem, you can give text parameters different names to differentiate them. You can have two instances of the person bean and populate them seperately, or put an additional field like 'sport' in there to tell you whether it is a bball of fball player. This could be done with a hidden field if you are using forms on the submission page.
Suffice to say it can be done without too much difficulty.

Similar Messages

  • F110 - How to prevent multiple creation of DME file?

    Hello,
    I need to prevent multiple creation of DME file for the same Payment Run (after it has been created once).
    "Printout" bottom creates DME file and Payment Advice any time you trigger it.
    I'm searching for some User Exit / BAdi / Function that will help me to add ABAP code that will check if DME file has already been created.
    Thank You in Advance

    Hello,
    Please check if the flag "Create payment medium" is not flagged at the proposal and the payment run file.
    If it is flagged the payment file will be generated. Also when you press the print out button, the print program will be called and the system will try to created a new payment file.
    In order to avoid duplicated payments you should consider using the flag 'Payment Document Validation" in your print program.
    If the 'Payment Document Validation' parameter is not set ON, documents already processed for payment can be selected and paid again in a subsequent payment run, when posting terminations have occurred.
    Please refer to SAP Knowledge Base Article 1713825 in order to activate Payment Document Validation.
    Another option is to suppress  the"Create Payment Medium" flag at Proposal Run.
    In this case you should check the following information:
    Please restrict the activity 15 of object F_REGU_BUK in the user
    profile/role
    You may also refer to the available activities on this:
    - 02 Edit parameters
    - 03 Display parameters
    - 11 Execute proposal
    - 12 Edit proposal
    - 13 Display proposal
    - 14 Delete proposal
    - 15 Create payment medium proposal
    - 21 Execute payment run
    - 23 Display payment run
    - 24 Delete payment run payment data
    - 25 Create payment media of payment run
    - 26 Delete payment orders of payment run
    - 31 Print payment medium manually
    Kind Regards,
    Fernando Evangelista

  • How to prevent multiple users from updating the same data in coherence

    Hi,
    I have a Java Web Application and for data cache am using coherence 3.5. The same data maybe shared by multiple users which maybe in hundreds. Now how do I prevent multiple users from updating the same data in coherence i.e. is there something in coherence that will only allow one user a time to update. If one user is in a process of updating a data in coherence and some other user also tries to update then the second user should get an error.
    Thanks

    I have a question on the same line. How can I restrict someone from updating a cache value when I a process is already working on it. I tried locking the cache key but it does not stop other process to update it , it only does not allow other process to get lock on it.

  • Prevent multiple users from editing/approving the same form SPD 2013,SP 2013

    Hello all, I have a workflow with a to do task, the task is assigned to a group so any of the users in that group can go in and do a quality check on form data and approve it.  How do I prevent multiple users from working on the
    same form? do I just require check out? or is there a way to notify the rest of the group that a user has already started the quality check.

    The "Require Checkout" option is your best bet.  You can also enable the auto checkout on edit option to allow minimal effort on the side of the user.  Other users will then get the error message stating the item is checked out, if they try to
    edit it.
    If you'd like, you could add a workflow to the task list that triggers when something is changed.  That workflow can check if the item is checked out and if so, email the other users assigned to the task.
    I trust that answers your question...
    Thanks
    C
    |
    RSS |
    http://crayveon.com/blog |
    SharePoint Scripts | Twitter |
    Google+ | LinkedIn |
    Facebook | Quix Utilities for SharePoint

  • Prevent multiple users from updating coherence cache data at the same time

    Hi,
    I have a web application which have a huge amount of data instead of storing the data in Http Session are storing it in coherence. Now multiple groups of users can use or update the same data in coherence. There are 100's of groups with several thousand users in each group. How do I prevent multiple users from updating the cache data. Here is the scenario. User logs-in checks in coherence if the data there and gets it from coherence and displays it on the ui if not get it from backend i.e. mainframe systems and store it in coherence before displaying it on the screen. Now some other user at the same time can also perform the same function and if don't find the data in coherence can get it from backend and start saving it in coherence while the other user is also in the process of saving or updating. How do I prevent this in coherence. As have to use the same key when storing in coherence because the same data is shared across users and don't want to keep multiple copies of the same data. Is there something coherence provides out-of-the-box or what is best approach to handle this scenario.
    Thanks

    Hi,
    actually I believe, that if we are speaking about multiple users each with its own HttpSession, in case of two users accessing the same session attribute in their own session, the actually used cache keys will not be the same.
    On the other hand, this is probably not what you would really like, you would possibly like to share that data among sessions.
    You should probably consider using either read-through caching with the CacheLoader implementor doing the expensive data retrieval (if the data to be cached can be obtained outside of an HTTP container), or side caching with using Coherence locks or entry-processors for concurrency control on the data retrieval operations for the same key (take care of retries in this case).
    Best regards,
    Robert

  • How can i design my application to prevent multiple login

    i need to develop a new application which want to prevent multiple user login. How can i do that? if i put all userid in a stack/arraylist and set it global, then set a filter to check the stack each time, is it ok, or have another better solution to do that. Thanks.

    Your client application needs to contain a unique Session identifier and the server application needs to keep a mapping of these Session identifiers against the User that is logged in.
    Then if another client app trys to log in with the same User ID and it is not the same as the current logged in Session identifier for that User, you can deny them access.
    Make sure the client app has a mechanism for logging out the current User/Session identifier, by way of a button or event.
    Events may go as follows:
    1. User A logs in
    2. Server app creates Session ID 1.
    3. Client app is assigned Session ID 1.
    4. Server app maps User A to Session ID 1.
    then later
    5. Different user tries to log in as User A.
    6. Server app checks for Session ID.
    7. No Session ID exists.
    8. Not the same user - go away (or other instruction)
    or
    5. Original User A (from point 1) logs in again.
    6. Server app checks for Session ID.
    7. Client app sends Session ID 1.
    8. Server app checks mapping of Session ID 1 to User A.
    9. Success, User A is the original user - please continue what you're doing.
    How you implement the storing of the Session ID on the Client app is dependant on the type of app your building - Cookies for web apps or encrypted files for GUI apps. The same applies for storing the mapping of the User to the Session but a database is the easist route to follow.
    Hope this helps.

  • Prevent creation of additional common objects at the  same time ...

    Context: A Super User group may require to be allowed to create and/or change queries in Production
    Would be possible to prevent creation of additional common objects like rectricted and calculated key figures and variables at the same time allowing creation of queries in terms of dragging and dropping filters, free characteristics, rows and columns?
    I know that keeping the system closed to changes and using the transport connection Object Changeability it is possible to restrict change of query elements to those that are original in the system.
    Points will awarded.
    Thanks
    Mathew.

    In transport connection Object Changeability, you can only set query elements as modificables but you cant distint between diferent query elements (queries, calculated/restricted key figures, structures, etc).
    You can do that distiction in authorization object in rs_comp and rs_comp1.
    You should combine transport connection Object Changeability and authorization objects in roles

  • How to prevent multiple logins by using HttpBindingListener

    Hi,
    Can anyone tell me how do i actually use session to prevent multiple login from different machine? From my understanding, i need to use HttpBindingListener to valueBound and valueUnbound when user tries to login, but i encounter a problem is my session is always overwritten since i use setAttribute() method in servlet.
    For instance i use username(aaa & bbb) to login in two different machine, my login is always overwritten if i use username bbb to login after username aaa. i know it is because setAttribute() method overwrite existing session data, so i would like to know what other method should i use to achieve what i want, tks.

    Hi,
    This is the logic for session :
    Connect to db for verification, once verified, system return a UserBean and this UserBean will be set in ClientSecurityEngine
    When this particular user has been successfully verified, a new session will be created
    if(success)
        session = request.getSession();
        User user;
        synchronized(session)
        user = (User) session.getAttribute("user");                       
        if(user == null)
           user = new User(ClientSecurityEngine.getInstance().getUserBean().getUsername());
           session.setAttribute("user", user);
    /* User class */
    public class User implements HttpSessionBindingListener {
        private static Map<String, HttpSession> logins = Collections.synchronizedMap(new HashMap<String, HttpSession>());
        private String username;
        public User(String username) {
            this.username = username;       
        public String getUsername() {
            return username;
        @Override
        public void valueBound(HttpSessionBindingEvent event) {
            if (logins.containsKey(getUsername())) {
                HttpSession session = logins.remove(getUsername());
                if (session != null) {
                    session.invalidate();
                logins.put(getUsername(), event.getSession());
            } else {
                logins.put(getUsername(), event.getSession());
        @Override
        public void valueUnbound(HttpSessionBindingEvent event) {
            logins.remove(getUsername());
    }Edited by: EJP on 21/07/2011 14:22: added {noformat}{noformat} tags so we can actually read your code. Please use them.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How do I launch quicktime player on Mac Book Air?

    How do I launch Quicktime Player on Mac Book Air? I know that my computer came with it, and when I try to launch it, the icon tells me that it is Version 10.1. Nothing else happens. I wanted to watch some online videos which require the plug in, but the plug in says that it needs my permission to run. In Chrome, it is enabled, and yet it doesn't play, In Safari as well.
    Thanks in advance.

    Or try the pause key which likely the F7 key.

  • How do I prevent multiple applications opening on start up with Lion?

    how do I prevent multiple applications opening on start up with Lion?

    It's the Resume feature of Lion:
    Managing Mac OS X Lion's application resume feature.
    If you shutdown your computer you should get a dialog asking if you want applications to resume on the next startup. Simply uncheck the box to prevent that from occurring. Open General preferences and uncheck the option to Restore windows when quitting and re-opening apps. You can also install a third-party utility to control resume features on individual applications: RestoreMeNot or Application State Cleaner.

  • Deliver HTTP ABR HDS+HLS Streams via Player Object to All Devices

    I have been unable to successfully establish a single video player object (similar to when delivering single-bitrate streams via FLVPlayback component with Flash Pro) that will automatically detect the browser type and automatically deliver the appropriate .f4m or .m3u8 manifest when broadcasting using HTTP adaptive bitrate streaming with FMLE3 and AMS5.
    I have both the HDS and HLS streaming working separately--the AMS5 sample videoPlayer.html file will accept and play video content when fed the URL: http://csitsfms.sys.oakland.edu/mbrBlack.f4m; however, I have not had success in getting any .f4m streams initiated in any other fashion.
    Also, HLS streaming is verified to be working on: http://csitsfms.sys.oakland.edu/mbrBlack.m3u8 when using an option such as VLC Player's File -> Open Network Stream command.
    The end desired result is that a user will navigate to  a particular URL and the browser autodetects whether to deliver the .f4m or the m3u8 manifest and initiate the appropriate stream to a single video playback object.
    We've had FMS up and running since v3.5; however, have just recently upgraded to AMS5.0.x and would like to enable adaptive bitrate streaming to all devices; we have no problem with single-bitrate streaming to Flash-enabled devices.
    I have also tried using the sample videoPlayer.html page's auto-generated code, dropping that onto an otherwise empty HTML document; however, Error 2048 was returned instead of a valid stream. Using a similar process with the OSMF generator, the error standard error, "We are having problems with playback. We apologize for the inconvenience."
    It may be noted that we have SWFVerification enabled for our domain, in case this is what may be impeding our efforts.

    take a look at this links
    http://www.adobe.com/devnet/adobe-media-server/articles/beginning-fms45-pt01.html
    i think you are not calling the video properly in the HTTP URL.
    http://csitsfms.sys.oakland.edu/mbrBlack.f4m  willnot work. If you are using the AMS videoplayer.html use the embeded code and paste it in a html file.
    http://domain.com/hds-vod/filename.f4m WILL NOT WORK . This will only display the content of the f4m file.

  • If we want to transfer data to multiple receiver using context object, how

    If we want to transfer data to multiple receiver using context object, how many receiver determinations we need to create?

    Hi Chiru,
    Just go thro' the below links for sending data to multiple receivers:
    /people/venkataramanan.parameswaran/blog/2006/03/17/illustration-of-enhanced-receiver-determination--sp16
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp
    Conditions in Receiver Determination
    I hope this helps.
    Regards.
    Praveen

  • Preventing user launch of .jar files

    With Workgroup Manager I can prevent users from launching certain applications. What I cannot do, however, is prevent users from launching certain .jar files. Is there any way to prevent Jar Launcher from launching files like oh, let's say, OurTunes?
    17 Powerbook - 1.5Ghz   Mac OS X (10.4.6)   2GB RAM, Adobe CS2, Xcode 2.3

    Windows should be set up to run jar files when you install a JRE or JDK. I don't know about Linux. If it doesn't happen automatically, you must tell the OS that when you click a jar file, it should launch the jvm with the parameter "-jar [filename]".
    To make your jar files executable, include a parameter called "Main-Class" in the manifest file, containing the name of the main class of your application. So if your main class (the one with the main-method) is called mypackage.myapplication.MyMain.class, the manifest file should have the entry    Main-Class : mypackage.myapplication.MyMain

  • How to disable "Allow website_adress launch Flash Player ?" panel without disabling click to play functionality on Flash add-on?

    On some websites firefox requests me to launch Flash Player by showing panel with text "Allow <website_adress> launch Flash Player ?" at the top of the page and shifting it down a little. Is there a way to get rid of this panel without disabling "click to play" on flash player plugin? (FF 26, Windows 7 x86)
    Screenshot of this panel:
    https://www.dropbox.com/s/u1bnvmd3p3n1vnh/toolbar.PNG

    You can look at this extension:
    *Hide Plugin Notifications: https://addons.mozilla.org/firefox/addon/hide-plugin-notifications/

  • Prevent multiple personnel actions being performed on the same day

    Hi Experts,
    Does anyone know if it is possible to prevent multiple personnel actions from being performed on the same day even where the action does not change the status of the employee?
    Regards,
    Janet

    Hi Janet,
    i mean to say if you activate the additional action then only the second action on the same day gets stored in to the IT-0302.
    if you dont activate additional actions then if you run the second action on same day it will over write the existing record and gives warning message that  this record over write the existing record.
    so here the point is if additional actions is activated then only system allows you to perform the second action on same day..
    other wise it will replace the existing record.
    if you want to prevent the additional actions to be prevented even after activating it --i think its not possible because the functionality of the IT 0302 is to save more than one record.
    yes you can restrict the to perform the action through authorizations 
    hope it is clear 
    regards,
    mohammed

Maybe you are looking for