muffinmanager/src/main/java/org/jbundle/util/muffinmanager/MuffinManager.java
public Transferable getClipboardContents()
    {
        if ((clipboardReadStatus & CLIPBOARD_DISABLED) == CLIPBOARD_DISABLED)
            return null;    // Rejected it last time, don't ask again
        clipboardReadStatus = CLIPBOARD_DISABLED;
        if (cs == null)
        {
            try {
                cs = (ClipboardService)ServiceManager.lookup("javax.jnlp.ClipboardService"); 
            } catch (UnavailableServiceException e) { 
                cs = null;
            }
        }

        if (cs != null) { 
            // get the contents of the system clipboard and print them 
            Transferable tr = cs.getContents(); 
            if (tr != null)
                clipboardReadStatus = CLIPBOARD_ENABLED;
            return tr;
        }
        return null;
    }
public Transferable getClipboardContents()
    {
        if ((clipboardReadStatus & CLIPBOARD_DISABLED) == CLIPBOARD_DISABLED)
            return null;    // Rejected it last time, don't ask again
        clipboardReadStatus = CLIPBOARD_DISABLED;
        if (cs == null)
        {
            try {
                cs = (ClipboardService)ServiceManager.lookup("javax.jnlp.ClipboardService"); 
            } catch (UnavailableServiceException e) { 
                cs = null;
            }
        }

        if (cs != null) { 
            // get the contents of the system clipboard and print them 
            Transferable tr = cs.getContents(); 
            if (tr != null)
                clipboardReadStatus = CLIPBOARD_ENABLED;
            return tr;
        }
        return null;
    }
public Transferable getClipboardContents ( ) { if ( ( clipboardReadStatus & CLIPBOARD_DISABLED ) == CLIPBOARD_DISABLED ) return null ; // Rejected it last time, don't ask again clipboardReadStatus = CLIPBOARD_DISABLED ; if ( cs == null ) { try { cs = ( ClipboardService ) ServiceManager . lookup ( "javax.jnlp.ClipboardService" ) ; } catch ( UnavailableServiceException e ) { cs = null ; } } if ( cs != null ) { // get the contents of the system clipboard and print them  Transferable tr = cs . getContents ( ) ; if ( tr != null ) clipboardReadStatus = CLIPBOARD_ENABLED ; return tr ; } return null ; }
Get data from the system clipboard.
@return
Get data from the system clipboard .