Applets and clipboard (copying text)

I've done some small games like chess that work directly in browser as applets. During game moves are printed out to normal JTextArea component. Idea and much used feature so far have been that at the end of game players can simply copy move list to clipboard and save/use them as wanted.
But now it seems that after Java 6 update 24 it is no longer possible to copy text from textarea to clipboard? It is possible to select all text with crtl+a but ctrl+c does nothing. Is there any way how people could get text to their clipboard from (unsigned) applet?
Thanks!

846649 wrote:
..Is there any way how people could get text to their clipboard from (unsigned) applet?See Copy in sand-boxed app. in 1.6.0_24+ for a potential solution to the new security measures. Would appreciate some test results to help work the kinks out.
Thanks!O_o IMO thanks is well expressed by marking replies as 'helpful' or 'correct' as appropriate. Your failure to mark any of my replies in this thread as even 'helpful' has me wondering if I am wasting my time trying to help. :(

Similar Messages

  • How can I copy and paste from Google "Keep"? Whenever i try, the copied text doesn't get copied on the Firefox clipboard, it copies to my 'default' clipboard.

    I can't get the Firefox clipboard to appear when i try to copy from Google Keep. Please help, thanks.

    Hi again LvScience:
    (jsoulless40's advice (thanks js40!) of trying the desktop site in Firefox when using the Keep web app is fine but i think you are using the Keep App right, not the web app version right?)
    Thanks for the device info: "Android OS is 4.1.2 on a Samsung Rugby Pro". I don't have that tablet but I do have two android samsung tablets running 4.x
    I should have asked before:
    '''What exact steps where you following when you copied and pasted into a "newly opened document"'''
    My steps were (on my Samsung Tab S 10 running 4.4.2):
    # in Firefox selected and then copied some text
    # switched to Google's Keep app
    # '''successfully pasted the text in Keep into the "Add quick note", also tapped on the new note icon and pasted the text into a new note'''

  • Can't Copy text unless console is opened before applet with JTextField

    If an applet uses JTextFields, it is impossible to copy text from the console to the clipboard (or anywhere else) if the console is opened after the applet.
    See http://demo.capmon.dk/~pvm/nocopy/nocopy.html for a working applet with source and class file to try it out on...
    So if something bad has happened, and there are hints in the console e.g. a stack trace, it all has to be retyped by hand, since all Copy or export is impossible...
    Does anyone know of a workaround for this? I'd like to be able to e.g. copy stack traces to bug reports.
    Try these test cases:
    * Close all browser windows. Open a browser and visit this page. After the page with this applet has loaded, then open the console with "Tools/Sun Java Console" (or "Tools/Web Development/Java Console" in Mozilla). Select some text in the console. There is no way to put this text on the clipboard; the "Copy" button doesn't work, and neither does CTRL+Insert, CTRL+C or anything else.
    * Close all browser windows. Open a browser window no some non-java page and then open the console with "Tools/Sun Java Console" (or "Tools/Web Development/Java Console" in Mozilla). Then visit this page. Select some text in the console. Now the "Copy" button does work, enabling "export" of e.g. stack traces to other applicaitons e.g. email.
    The difference is which is opened first: The console or the applet. If you look at the very rudimentary Java source code, it is the mere creation of a JTextField is what disables or breaks the Copy functionality.
    I've tried this on Windows XP with IE 6.0 and Mozilla 1.3 and they behave exactly the same. The JVM is Sun's 1.4.2 and I've tried 1.4.1_02 also with the same behavior. I've also tried javac from both 1.4.2 and 1.4.1_01

    hey .. this seems like a bug.. can you please file a bug at
    http://java.sun.com/webapps/bugreport
    thanks...

  • How can I copy text from PDF and include the source filename in the pasted selection?

    I'm a biologist and frequently cut-and-paste notes from PDFs of scientific articles.  I name all of the PDF articles with their PubMed ID, a short unique identifier (e.g. 19397482.pdf).  When I take notes, I will select a few sentences from the PDF and then paste them into a text editor for later reference. 
    Can anyone suggest a method or script that would allow me to paste the copied text with the Pubmed filename included in a single action?  I would want the pasted output it to look something like this, with the filename appended to the end:
    Of the transcripts that were significantly different, there was a greater number of transcripts that were down-regulated in the IVC embryos (380) than the number of transcripts that were up-regulated (208).  [20668257.pdf]
    This would really help me to properly cite information sources during the writing process.  I know there are bibliography managers that might be able to do something like this, but I prefer to read the PDF articles directly in Preview and select the text as I am reading. 
    Thanks very much for any suggestions / ideas.
    jjw

    To copy and paste in a single action:
    tell application "Preview" to activate
    tell application "System Events" to tell process "Preview"
        -- Get the PubMed ID:
        get the title of the front window
        set thePubMedID to word 1 of result
        -- Copy the selected text to the clipboard:
        keystroke "c" using {command down} -- ⌘C
        delay 0.25 -- adjust if necessary
        -- Add the PubMed ID to the contents of the clipboard:
        set theNotes to the clipboard
        set the clipboard to (theNotes & space & "[" & thePubMedID & ".pdf]")
    end tell
    tell application "Notational Velocity" to activate
    tell application "System Events"
        -- Paste the contents of the clipboard to the end of the Notational Velocity document
        key code 125 using command down -- ⌘↓
        keystroke return & return
        keystroke "v" using {command down} -- ⌘V
    end tell

  • How can I copy text from Pages and paste as Unicode?

    I notice that if I write a Pages document on my iMac (this is Pages 09 running under OSX Mavericks 10.9.1) and copy text that contains characters from the "Mac Roman" character set (like the Greek letter pi for example, and some other mathematical symbols), if I paste it into a text file on a PC (I'm running the Mac with Windows via Parallels), then these characters don't show up correctly. If they were copied as Unicode characters then I don't think the problem would exist. I thought that Pages used Unicode, but it doesn't apparently apply to stuff that gets onto the Mac clipboard. I do know that if I export a whole Pages document it is possible for it to be exported in Unicode, but I just want to copy small bits of text like mathematical formulae and paste them into Unicode-compliant applications. Is this possible? There's nothing in the Pages Preferences to suggest that it is. Is there any solution to this?
    TIA

    Tom, I'm sorry I think I have wasted your time. My initial experiments seemed to show that what I was trying to do didn't work, but now it all seems to work. No idea why. I think there is a problem somewhere, but not where I thought it was. I think what may be happening is that when the Mac clipboard sees some Mac Roman text, it converts and stores it in Unicode form, so things work as long as the receiving app is Unicode aware - or Parallels is doing the job for me, or Pages is. Good if this is true. The only issue then would be that, if a program for the PC is looking for characters by their encodings, it will have to use the Unicode ones to find things, whereas the equivalent code on a Mac will have to look for the Mac Roman encodings as well as Unicode.
    Just to explain, I am not using a specialised mathematical formula editor, but I do expect my user to use the math symbols easily accessible on the Mac keyboard, particularly the Greek letter pi (lower case), division sign, less than or equal to, greater than or equal to, square root. The user can type text directly or paste it in from another application. On the PC side I am not using Microsoft Word but a program I'm developing that can create fields into which I can put text, similar I suppose to NotePad. Just to be able to be cross-platform, I expect users to use the built-in Windows Character Viewer or similar to make the same symbols accessible as in the Mac version.
    If everyone was using Unicode the problem (if there is one) wouldn't exist.
    I may well come back with a similar issue in the future, but my original issue, although the description was given in good faith, seems to be wrong. So I'm saying the problem is solved.

  • Button to copy text to the clipboard

    Reading the document "Javascript for Acrobat API Reference" Page 120:
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf
    the document discusses the execMenuItem command. From all that I have researched it appears I cannot create a button that copies text from a text field to the UI clipboard. 
    On page 121 the API reference says:
    To ensure a secure environment, the menu items that can be executed are limited to the following:
    ●AcroSendMail:SendMail
    ●ActualSize
    ●AddFileAttachment
    ●BookmarkShowLocation
    ●Close
    ●CropPages
    ●DeletePages.............
    ..............●ZoomViewOut
    The list is long but nowhere is "Copy" mentioned. I don't want to surreptitiously copy text or use a trusted function. I am content with the user knowing a button just copied a field of text. I just want to skip the highlighting of multiple field to get all the text. Does anyone know a way around this? I would like to copy a text field to the clipboard so the text can be entered elsewhere in another program.

    All I know is they made this impossible a long time ago, like with Acrobat 5 or 6. I recall because I took advantage of it and never discovered a workaround.

  • I find that I can no longer copy text to the clipboard.

    Why can I no longer copy text to my clipboard?

    Here is a little more information.  Last week everything worked fine.  I opened the same document yesterday and tried to copy some text to the clipboard and now I get an error message saying "can not copy to clipboard, internal error.  I also find that pdf files from the internet will not load and all I get is a small black x box in the upper left corner of the screen.  Went through the steps in control panel and adobe is enabled.

  • Copy text to Windows clipboard

    I need to copy text, either from a Flash textArea component
    or a text member, to the Windows clipboard so it can be pasted into
    a form field in a web page. I'm trying to streamline a data entry
    process and alleviating CTRL+C will be a big help. Does anyone know
    a way of doing this?
    Thanx in advance.

    If you do not need it in Shockwave, there is the free
    clipboard xtra
    from the wonderful Valentin Schmidt...
    http://staff.dasdeck.de/valentin/xtras/clipboard/
    That has a whole of of control over the clipboard and its
    contents/formats.
    If you just need a simple text to/from the clipboard routine,
    then you
    can use BuddyAPI's baCopyText() and baPasteText()

  • Copy and Paste Unformatted Text to documents

    A very useful feature at times is the ability to copy and paste formatted text from pages (in this case webpage) to a document (text edit, word). Which means that what ever bold, font or style on a page is copied to the clipboard and then pasted identically to the document.
    question:
    Is there a way to copy or paste the plain text of the clipboard rather than the formatted version?
    thanks..

    Hi, SU.
    Many applications support this, but how it is implemented varies by application.
    In many apps, if you paste using the Command-Option-V keyboard shortcut (instead of Command-V for paste), it will paste the clipboard contents either:
    • Without the styles used in the document from which the text was copied.
    • In the same style as the document into which you are pasting the text.
    Some apps, e.g. Microsoft Office, have an Edit > Paste Special menu choice that permits one to select that text should be pasted either without the styles or matching the style of your document.
    In Mail, the keyboard shortcut is Command-Option-Shift-V.
    Consult the Help for the particular application to determine how one can paste what is commonly called "styled text" without the styles. Styled text is text in the clipboard that retains the style of the document from which it was copied.
    Good luck!
    Dr. Smoke
    Author: Troubleshooting Mac® OS X

  • Can i copy text from illustrator to indesign and retain attributes

    Hello,
    I received an illustrator cs3 file that I need to convert to InDesign cs3.
    Is there a way to copy the type that is set in illustrator to indesign, while retaining the attributes. I need to be able to make changes on the type in indesign, so converting type to outlines isn't an option.
    Thanks!
    T

    Even though you can change your InDesign preferences for Clipboard Handling to allow formatted information to be pasted into InDesign from other programs, unfortunately Illustrator still won't allow you paste in text with formatting. This is due to how Illustrator and InDesign handle text differently. Even if you copy the text from Illustrator and paste it into a program like Word, which has a lot of different ways to handle formatted text, Illustrator just treats text differently than other Adobe applications.

  • Is it possible to copy text from word, paste it in InD and bring the footnotes with it?

    Is it possible to bring in footnotes from Word without linking to the word file?
    Thanks for the help!

    Is it possible to bring in footnotes from Word without linking to the word file?
    No -- copying from Word to InDesign uses the regular interapplication clipboard, and is copied as plain unformatted text.
    "Without linking to the Word file" ... well, it is a user preference (in the Preferences panel, no less) to link to text documents or not. I think you could defeat the automatic linking if you import the entire file into a new ID document and then copy out just the part you need (and that would include footnotes as well as any and all other formatting).

  • Unable to copy text values in CLipboard in Ubuntu 8.1

    Hi all ,
    Im using the following code to copy the text:
    import java.awt.Toolkit;
    import java.awt.datatransfer.Clipboard;
    import java
         .awt
         .datatransfer
         .StringSelection;
    import java
         .awt
         .datatransfer
         .Transferable;
    public class TextWriter {
         public static void writeToClipboard(String writeMe) {
              // get the system clipboard
              Clipboard systemClipboard =
                   Toolkit
                        .getDefaultToolkit()
                        .getSystemClipboard();
              // set the textual content on the clipboard to our
              // transferable object
              // we use the
              Transferable transferableText =
                   new StringSelection(writeMe);
              systemClipboard.setContents(
                   transferableText,
                   null);
         public static void main(String[] args) {
              System.out.println(
                   "Writing text to the system clipboard.");
              String writeMe =
                   "I'd like to be put on the clipboard";
              writeToClipboard(writeMe);
    }After running the application when I try to paste it in GEDIT , it is not pasting .
    Also in menubar the PASTE is also not getting enable.
    Can anybody tell how to copy text .
    OS used Ubuntu 8.1 and java version 1.6 update 10
    Thanks and regards
    Anshuman Srivastava

    Copy cannot be disabled to my knowledge. Did you try quitting Safari and resetting your iPad? To quit an app double click the Home button to reveal the row of recently used apps. Flick up on the page preview and it will fly away and disappear. That quits the app. Then Press and hold both the Home button and the Sleep/Wake button continuously until the Apple logo appears. Then release the button and let the device restart. You will not lose data doing this. It's like a computer reboot.

  • Hi I've a big problem with adobe acrobat reader XI pro and I hope you can help me. The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reade

    Hi
    I've a big problem with adobe acrobat reader XI pro and I hope you can help me.
    The problem is; when I past copied text from some pdf books (not all of them) it past symbols only! wherever I past it! and even if I coped that text from another pdf reader (adobe pdf reader, internet browsers, ...etc.).
    This problem started to happen since yesterday when I installed adobe acrobat reader XI pro to try it before I buy it, and before that when I was using the free adobe pdf reader I was totally able to copy any text from any pdf and past it anywhere with nothing wrong.
    What can I do?
    thank you a lot.

    There is no product called Adobe Acrobat Reader Pro. There is
    - Adobe Acrobat Pro ($$)
    - Adobe Reader (free)
    Which do you have? And are you a programmer?

  • I need to be able to copy text of a Gmail email I have sent and paste it in a new email when using firefox as my browser

    hi everyone
    I recently upgraded to the new firefox version. When using the previous version. i would copy text in emails I had sent and paste it into new emails. It saved me much time>
    I am totally unable to do this with the newer version of the browser. There is no edit function on the tool bar that allows me to copy and paste.
    any suggestions as to how I can cut and paste or save documents to use over again?
    thanks

    Hi, I had the same issue. My solution was to take the freeware-tool clickto.
    So I'm now able to take any text, copy it and past it via clickto into a new mail.
    [http://www.clicktoapp.com Clickto ]expands your copy-paste feature by showing you some "satellites" after doing the copy action. These "satellites" now will give you some opportunities to paste your copied content, for example a picture to facebook or a text to a new mail on gmail with just 1 single click.

  • This regards Adobe Reader XI 11.0.07 and Adobe Acrobat Pro XI 11.0.07 running on Win 7. Copying text in a text callout (to paste into a text callout in another pdf document (3 instances of Adobe open) sometimes (only sometimes) causes the program to crash

    This regards Adobe Reader XI 11.0.07 and Adobe Acrobat Pro XI 11.0.07 running on Win 7. Copying text in a text callout (to paste into a text callout in another pdf document (3 instances of Adobe open) sometimes (only sometimes) causes the program to crash, losing unsaved work. Windows Task Manager shows only a small percentage of cpu used and plenty of memory available. What is causing this?

    scholtzkie wrote:
    "Please wait...If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document.   You can upgrade ...  For more assistance....    Windows is either a registered trademark...."
    This usually occurs if you use a browser that uses its own PDF viewer, not the Adobe Reader plugin; see http://helpx.adobe.com/acrobat/kb/pdf-browser-plugin-configuration.html

Maybe you are looking for