Copy and paste (gif/jpg file)

I need to copy a gif/jpg file from one folder and paste it into another folder. The java.io package does not provide any method to do this. How do I achieve this? Does Java 1.4 provide anything? Is there any sample code available anywhere?

Not quite sure what you mean here...are you talking about a GUI context? If so you need to look at the DnD framework...java.awt.dnd.
If you mean just copying a file over to a new location just use: File.renameTo (File).

Similar Messages

  • How can I copy and paste a pdf file from my picture file and paste onto a document?

    How can i copy and paste a pdf file onto a document.  I am trying to place and article onto my
    Reverbnation Press page.  They only give you the option to either place a url link or paste a document.  There
    is no uploading for the Press page.  thanks, elena

    The Digital Editions forum is here, in case this is what you are talking about:
    http://forums.adobe.com/community/adobe_digital_editions
    If you are not, I apologize for the misunderstanding.

  • I download autocad 2010 with crack, how can i install it with crack coz i can't find where to paste the crack file? not like windows just go to drive c, progarms and click the installed folder and you can copy and paste the crack file.

    i download autocad 2010 with crack, how can i install it with crack coz i can't find where to paste the crack file? not like windows just go to drive c, progarms and click the installed folder and you can copy and paste the crack file.
    please help me..
    thanks

    No one here will help you.
    You should definitely ask your question in this forum:
    http://forums.autodesk.com/t5/AutoCAD-2010/bd-p/360

  • I followed the instructions to copy and paste ALL profile files from old PowerBook to new MacBook Pro, so why are no bookmarks now shown in Firefox?

    From the page
    https://support.mozilla.org/en-US/kb/recovering-important-data-from-an-old-profile#w_copying-files-between-profile-folders
    After dragging and dropping the profile folder from the old PowerBook to the new MacBook Pro, I followed the copy/paste instructions, apparently successfully, to replace all the files in the latter with all the files in the former -- essentially to transfer my Firefox browser functionality from the old computer to the new. However, on starting Firefox, I have ZERO bookmarks (in other words, Firefox looks like it did when I downloaded and installed it a couple days ago). One note: When I performed the operation, I had used the new version of Firefox almost not at all, yet in the course of copying and pasting I had to permit replacement of HUNDREDS of bookmark files with identical names. How could THIS be?!?

    It is normally best to only restore personal data that you really need (bookmarks, passwords, etc.) and not a full profile folder.
    The xxxx in the name of the JSON backup (bookmarks-####-##-##_xxxx_$$$$.jsonlz4) denotes the number of bookmarks in the file and a file hash ($$$$) is appended to check if it is necessary to save a new backup, so only if there is a different hash because bookmarks were modified then a new backup is created.
    If you remove the newer backups that were created before you restored the backup and only leave the bookmark backups from the saved profile then Firefox should rebuild the bookmarks when you remove all the places files.
    *http://kb.mozillazine.org/Bookmarks_history_and_toolbar_buttons_not_working_-_Firefox
    Can you attach a screenshot to clarify what you mean with ''all those hundreds of bookmarks, now residing in the profile folder''?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB

  • Can I simply copy and paste an existing library file from XP to a Mac and then copy and paste the music files themselves? Of course, the music files will be in a different location...

    Hello Gurus,
    I have an aged XP machine with a large music library in ITunes. iTunes will not run any longer (tried uninstalling and reinstalling etc to no avail) but the music files are backed up onto an external drive so all safe. I have purchased a Mac which of course already has iTunes installed and I can copy the music files onto the Mac, but can I simply copy and paste the iTunes library files from the XP machine to the Mac so that all of the playlists, tags, ratings etc transfer, or do I have to start again?
    Thanks for the advice.

    Sounds like you have a split library. Ideally you would make this portable before attempting to move it to the Mac. See make a split library portable for details.
    Perhaps you can get iTunes running on the old box long enough to sort things out...
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down page in case one of them applies.
    Your library should be unaffected by these steps but there is backup and recovery advice elsewhere in the user tip.
    You will also want to deauthorize the XP system once everything is working properly on the Mac.
    tt2

  • Why cant I copy and paste local links (file:/// or bookmarks) into an editable page (browser or email) in Fx 4 or 5, as I COULD in Fx 3?

    During the time I was using Fx 3, I found out that I could copy and past links and bookmark folders into an editable page in firefox, and manipulate those links just as I could in my emails for instance -- copy and paste to my hearts content! and the links would remain clickable--
    now, having switched to Fx 4, and then a week later Fx 5, I find out that in neither of these versions can I still do this same operation-- the links from file (file:///) and bookmarks to local pages (including about:config, or about:blank) used to show up in an editable page (and then saved in the scrapbook extension, but even if saved onboard my disk, no matter) as a clickable link-- (no, about config would not open up from a saved page, Im trying to remember more examples here, the LINK would still be a correct hyperlink)
    now, in Fx 4 and 5, these links are copied to the clipboard as text only!
    this saddens greatly-- I was making wonderful use of this feature back in Fx 3.6-- but Fx 5 really is faster, and so far, ALL the extensions Ive come to LOVE still work great in Fx5, and things happen faster
    can someone tell me why,
    and
    is there a config setting, or some other solution that can change this back for me?
    ("3 people have this problem 2 new this week")
    THANK YOU "I have this problem too" clickers!!!
    Im still checking back here regularly to find out WHY!?

    During the time I was using Fx 3, I found out that I could copy and past links and bookmark folders into an editable page in firefox, and manipulate those links just as I could in my emails for instance -- copy and paste to my hearts content! and the links would remain clickable--
    now, having switched to Fx 4, and then a week later Fx 5, I find out that in neither of these versions can I still do this same operation-- the links from file (file:///) and bookmarks to local pages (including about:config, or about:blank) used to show up in an editable page (and then saved in the scrapbook extension, but even if saved onboard my disk, no matter) as a clickable link-- (no, about config would not open up from a saved page, Im trying to remember more examples here, the LINK would still be a correct hyperlink)
    now, in Fx 4 and 5, these links are copied to the clipboard as text only!
    this saddens greatly-- I was making wonderful use of this feature back in Fx 3.6-- but Fx 5 really is faster, and so far, ALL the extensions Ive come to LOVE still work great in Fx5, and things happen faster
    can someone tell me why,
    and
    is there a config setting, or some other solution that can change this back for me?
    ("3 people have this problem 2 new this week")
    THANK YOU "I have this problem too" clickers!!!
    Im still checking back here regularly to find out WHY!?

  • Can't copy and paste or drag files and folders

    In the last few days I can no longer drag files or folders on my desktop, in my mail program (Entourage) and I can't copy and paste anymore. I also can't get iDisk to come up. It keeps givng me error messeges. (error code -50). Anyone had similar problems and know of a solution?

    When did you last run a bit of basic maintenance?
    Repairing permissions is important, and should always be carried out both before and after any software installation or update.
    Go to Disk Utility (this is in your Utilities Folder in your Application folder) and click on the icon of your hard disk (not the one with all the numbers).
    In First Aid, click on Repair Permissions.
    This only takes a minute or two in Tiger, but much longer in Leopard.
    Background information here:
    http://docs.info.apple.com/article.html?artnum=25751
    and here:
    http://docs.info.apple.com/article.html?artnum=302672
    An article on troubleshooting Permissions can be found here:
    http://support.apple.com/kb/HT2963
    By the way, you can ignore any messages about SUID or ACL file permissions, as explained here:
    http://support.apple.com/kb/TS1448?viewlocale=en_US
    If you were having any serious problems with your Mac you might as well complete the exercise by repairing your hard disk as well. You cannot do this from the same start-up disk. Reboot from your install disk (holding down the C key). Once it opens, select your language, and then go to Disk Utility from the Utilities menu. Select your hard disk as before and click Repair.
    Once that is complete reboot again from your usual start-up disk.
    More useful reading here:
    Resolve startup issues and perform disk maintenance with Disk Utility and fsck
    http://support.apple.com/kb/TS1417?viewlocale=en_US
    For a full description of how to resolve Disk, Permission and Cache Corruption, you should read this FAQ from the X Lab:
    http://www.thexlab.com/faqs/repairprocess.html

  • How to copy and paste the solution files of SharePoint 2010 from one machine to another machine?

    Hi,
    I was working with SharePoint 2010  in one of my Virtual machines.Now that the lease for my Virtual Machine is going to expire, I want to shift the entire contents of the project to another machine (local) with SharePoint 2010. Also, I want the pages
    in the other machine to be editable. 
    How can I copy the solution files to the other machine? And I want the exact path where the files are located, so that I can shift them to the other machine.
    Thanks in advance. 

    ...that's not a good approach.
    Deploying customisations can be as simple as files being copied onto the file system. Most of the time however there is a lot more happening behind the scenes and simply copying the files won't work.
    Also that is assuming that you mean solutions rather than the pages themselves (or the contents of document libraries) in which case you want to copy databases, not just files.
    SharePoint isn't a simple thing to move, you may need to look at this a bit harder.

  • Don't know how or where to create user.js file so I can add script to allow copy and paste into a webbased email

    I am trying to compose an email from the email address on my web page. The email editor program (or Mozilla) doesn't allow me to do that. The instructions that Mozilla provided said to find the user.js file in Firefox's profile directory. I can't find such a file. I don't know where or how to create this file or how to write into it the lines that the instructions provided. I also don't know what url I am supposed to substitute for mozila.org that is in the lines of script.

    This was helpful. Now, to to do what I need to do I have to add something to the user.js file as per directions regarding ''setting prefs for Mozilla Rich Text Editing Demo'' to allow a copy and paste. It instructs me to change the URL from mozila.org to where I want to enable the function. I am not sure what that means. I am trying to to do something in the "back office" of my web site. I want to send an email from the web site's email. I am trying to copy and paste a pdf file into the body of the email but was not able to do it. I was directed to the setting prefs page. Do I change the location to the URL of my web site or the web site of the web host?

  • Cannot copy and paste images from the web into Corel Draw

    Attempting to copy and paste a jpg image from a client's website, for use in Corel Draw... Copy appears to work fine, and pasting into other programs like Windows Paint works, but paste to CorelDraw has no result.
    I've seen where others would get the text URL but nothing happens when I hit paste.
    Drag and drop imports the text name of the image.

    Since Firefox 13, when you copy an image, Firefox places both the image data (bitmap data) and the URL of the image on the clipboard. I can see why you would get one or the other, but I can't think of why you would get nothing.
    Did this just start in Firefox 22?
    Some odd interactions have been noted between Firefox 22 and ZoneAlarm: when ''copying'' selected text in Firefox, the clipboard may end up blank a significant percentage of the time . But it sounds as though you have a different issue.
    Do you have the same issue in Firefox's Safe Mode? That's a standard diagnostic tool to bypass interference by extensions (and some custom settings). More info: [[Troubleshoot Firefox issues using Safe Mode]].
    You can restart Firefox in Safe Mode using
    Help > Restart with Add-ons Disabled
    In the dialog, click "Start in Safe Mode" (''not'' Reset)
    Any difference?

  • Copy and paste stopped working in photoshop CC

    I've been using Photoshop CC since march and this is a new issue. Not previously a problem until today.
    When I select and area to copy, from a JPEG or photoshop PSD photograph, and make a new file to paste it into, the new file comes up the same size as the clipboard contents, as it is meant too, but photoshop will no  longer allow me to paste. The selection EDIT, Paste is still there in black, not greyed out. I temporarily fixed it by restarting my computer and it worked until I closed Photoshop down again and reopened it, problem is back...what is going on?
    Is it to do with preferences and how do I change them to fix this?
    the only thing I've changed recently was telling JPEG files to use photoshop as the default programme to open up in my computer. I changed this because Bridge was no longer showing photoshop as an option when you rightclick an image and chose which file to use to open it. The fix was to close Bridge, chose a jpeg and change the default to photoshop to open it.
    I'm running windows 7 home premium 64 bit.
    any help recieved with thanks....

    Thanks again,I did manage to delete the preferences using your method above. but again, copy and paste using PSD files still not resolved.
    Copy and paste works for PNG GIFF JPEG files but not for PSD
    OK thanks to Curt Y, I suggest the solution is to do the preferences first, then the purging.
    I went back and purged the clipboard again after resetting the preferences and now it appears to be fixed.
    thank you

  • Copied and pasted my itunes folder to a new internal drive- can I consolidate the library?

    I ran out of space for my images so I copied and pasted the whole itunes folder over to a new internal hard drive.  I then deleted the itunes folder on the original drive.  I went to preferences in itunes and changed the location of the music folder.
    Unfortunately, the music library is not connecting to that new location, it is only filling with things from icloud.
    I looked up some instructions and now find out that the way to do it is to create a new folder and instead of manually copy and pasting, consolidating the files via itunes.
    What can I do now that I have done it manually?
    Thank you

    This is the process I usually recommend.
    Backup the library with this User Tip.
    Restore the backup to your new computer using the same tool used to back it up.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Keep your backup up-to-date in future.
    If you've done the backup properly, delete any existing empty iTunes library that has already been made then copy in the entire iTunes folder from the external drive into your profile's music folder. Start iTunes. It should "just work" with no need to import anything.
    tt2

  • Copy and Paste text in finder

    Hi,
    I need to copy the file names in a folder I have containing 36 mp4 video files and paste the file names in text edit. Evey time I do a copy and paste the video files paste in text edit without names but what does get pasted is the video. Does anyone know how to copy the file names in the finder and pasting only the names in text edit? Thanks
    Jon

    I'm just curious. I finally got back to my Mac, and my instructions did work. I wonder if you did the following if it would work?
    ls -a "/Volumes/A4A\ MEDIA\ STORAGE/mp4s\ for\ mobile/" >myfile.txt
    it may be the problem is how you named the path, and it is getting messed up because of that. If there are spaces in place of the slashes above in the actual names, using the quotes allows you to use spaces, so removing those slashes for spaces where the real name has a space.

  • Copy and paste not working in Lion

    can someone please explain this incredibly stupid nonsense???? SInce installing Lion copy and paste or dragging files from one drive to another is no longer working. It appears to be working, as in I get the paisting dialog box and all the files start showing up in the folder, but as soon as it finishes they all vanish without a trace. Is this suposed to be some kind of new advancement for the OS???? What the **** is this all about????

    psprince wrote:
    I believe there is a very substantial bug in the copy/paste feature of OSX Lion:
    https://discussions.apple.com/thread/3253616
    I believe that you have a problem with copy/paste and some others are too. But the vast majority of users are having no problems in this area. Some simple testing could help.
    Try starting up in Safe Mode and testing.

  • Can no longer copy and past jpg and gifs into InDesign from c:\user\doc\pics

    Here is the error message we get when doing a copy and past from the hard drive to InDesign.
    Error Message from InDesign:
    Adobe InDesign may not support the file format, a plug-in that supports the file format may be missing...
    First, do I need to add a plug-in to be able to copy and past jpgs and gifs?
    Second, we have always used clip organizer with no problem. Ability to copy and paste jpg & gif suddenly stopped. We get a box but no image ont the page. Have already tried dumping temp internet files through internet explorer. Have already un & re installed InDesign and repaired and fixed everything I could think of.
    Third, we can use the place command to place jpgs but can not place gifs.
    William (Helping Mrs. White)

    It sounds as if Mrs White needs to search visually for graphics and then place them. She can either set Windows Explorer
    to thumbnail view and drag a graphic on to an InDesign page - this will in effect be placing the graphic, not copying
    and pasting, and is the right way to go. Or she can use File > Place, and set the view in the Explorer window that she
    selects from in the Place command to a thumbnail view to see the graphics.
    GIFs can be placed. They are not a recommended format, but if you are placing clip art then you may have no option.
    So, in answer to your original question, no, you don't need a plug-in to place JPEGs and GIFs. But note that is place,
    not copy and paste.
    k

Maybe you are looking for