Gif - file help: i don't want to read the gif each time from the file.....

Hello there guys,
i'm making a game and therefor i need to read a gif file like 20 times.
i don't want my program to read the gif each time from the file, but only once.
so i load it into an image or something?
cuz opening the gif 20 times from my hard disk is a lot of time loss....
opening it once and store it is much more efficient
thx in advance
plz help me out, cuz i don't really know how to do it.
(in Delphi it's easy, but Java......)
greetz,
SpeciesXX
Ramon Ribbe

yes, it works, i used this code, thx man
void button1_ActionPerformed(java.awt.event.ActionEvent event)
          ImageIcon image = new ImageIcon("f:/a.gif");          
          JLabel label = new JLabel();          
          label.setIcon(image);                    
          this.getContentPane().add(label);
          label.setBounds(10,10,100,100);
and there i see my image :-)
but 1 more thing, should i display all those blocks (images) on an applet, or should i use something else? (like what??)
a sort of frame?
because later on i have the field where all the blocks are in, and i have an area surrounding it, displaying all kinda information about the game, like how many lives remaining....
can i put 2 applets in eachother? like applet1 is the parent of applet2?
or should i use something else?
plz help me, cuz java is kinda new to me i see....
in delphi i just used 2 forms, form 1 with the blocks, form2 with the rest of info, and also being the parent of form1
thx again, soon i can help ya guys too, i hope..
(im learning java at school, but way too slow and to ez)
Ramon

Similar Messages

  • When I try to open an image by double clicking on it in Bridge, I get a message telling me to log in to Creative Cloud.  I am running CS6, and the default should be to open files in Photoshop 6 or in Adobe Raw (if it's a Raw file).  I don't want to log in

    When I try to open an image by double clicking on it in Bridge, I get a message telling me to log in to Creative Cloud.  I am running CS6, and the default should be to open files in Photoshop 6 or in Adobe Raw (if it's a Raw file).  I don't want to log into CC since I am not a subscriber, and this means that I have to work around, and go  back to Bridge, and tell it to open the file in Adobe RAW.  However, this does not work for older psd files which for some reason cannot be opened in RAW.  How do I return to the process of simply allowing RAW files to open automatically in Adobe RAW, and simply right clicking on the image in Bridge to bring up the option of opening it in Photoshop?

    <moved from Adobe Creative Cloud to Bridge General Discussion>

  • I have a mac mini (without sd/sdhc card slot) and a sony cx160e camcorder and i want to import 50p video files, but i don't want to convert my video's. How can i import my video's?

    i have a mac mini (without sd/sdhc card slot) and a sony cx160e camcorder and i want to import 50p video files, but i don't want to convert my video's. How can i import my video's?

    Connect the camera to the computer with a USB cable and use the camera as the card reader. Make sure the camera is in playback mode.

  • How can i import my e-mail contacts? i don´t want to type one at a time.  Is there a way to import all at once?

    How can i import my e-mail contacts? i don´t want to type one at a time.  Is there a way to import all at once?

    Sync your old address book with the one on the iPod.  You may have to import them into an intermediate address book like Google contacts since that can be done by importing a file you should be able to export for your address book.  Without know your old address book that is all I can say.

  • I want to take an image that's from my files, no cropped and be able to set up action(s) where I can drop that image behind an 8x10 frame overlay, then the same with a 5x7 frame overlay, then the same image behind a memory mate overlay that's an 8x10 size

    So is there a way to do this using the images right from the camera, where I don't have to crop three different sized images and drag them into the overlays?  I can set up an action for each, but cropping the same image 3x is a pain in the ***..!

    There are.  I did not write you need to learn scripting and write your own scripts.  As I wrote most Photoshop will never write a script.  However I would write every Photoshop user will at times use a Photoshop script to do some automated process for them. 
    I wrote the it would be very hard to do what you want to do would a straight Photoshop action.  Actions on their own can not use logic.  An action would need to to it by brute force.
    However in Photoshop CC Adobe added conditional action support.  With this support it is now possible to create a group of actions to process some conditions.  Like you can separate Landscape from portraits have an Action for processing  landscape images and an other for processing portrait images.
    Size is still hard to deal with for you can have landscape's the are extremely wide to landscapes that are square and portraits the are extremely narrow to those that are almost square.
    Image the extreme aspect ratio will not fill a 8:10 or 5:7  area it resized to 10 and 7 and creating crops the have 8"10 and 5:7 will have images compositions where most of your image content has been discarded.
    Camera images do not have extreme aspect ratio the usually have  3:2 or 4:3 aspect ratios there are exceptions.  When you have print made the are 5x7 and 8x10 by printers  the prints you receive from the printers are center crops from your image files.
    It is very easy to make center crops if aree images have the same aspect ratio and orientation to begin with.  Now with CC you can have seperate actions to the two orientations.
    A general solution would need handle arbitrary aspect ratios the resulting center crop may well not have a satisfactory image composition for source image with extreme aspect ratios.
    Photoshop ship with several scripts users use all the time to process their image.  You may have used some yourself. Do any of these sound familiar to you. Conditional Mode Change, ContactSheetII, Delete All Empty Layers, Export Layers To Files, ExportColorLookupTables,  Fit Image, Flatten All Layer Effects, Flatten All Masks, generate, Image Processor, Layer Comps To Files, Layer Comps To PDF, Lens Correct, Load DICOM, Load Files into Stack, Merge To HDR, Photomerge, Script Events Manager and Statistics.
    My action package as I wrote contains more the a dozen script I wrote to be used in actions to add logic into the actions.
    It would also be extremely easy to create a Photo Collage Template PSD that contains a background layer that has your two frames the 8x10 and 5x7 and also have two alpha channels to map the locations of the images.  That can be batch populated with my script  BatchPicturePackage.
    Photo Collage Toolkit
    Photoshop scripting is powerful and I believe this package demonstrates this A video showing a 5 image collage PSD template  being populates with images:
    The package includes four simple rules to follow when making Photo Collage Template PSD files so they will be compatible with my Photoshop scripts.
    Size the photo collage templates for the print size you want - width, height and print DPI resolution.
    Photo collage templates must have a Photoshop background layer. The contents of this layer can be anything.
    Photo collage templates must have alpha channels named "Image 1", "Image 2", ... "Image n".
    Photo collage templates layers above the background layers must provide transparent areas to let the images that will be placed below them show through.
    There are twelve scripts in this package they provide the following functions:
    TestCollageTemplate.jsx - Used to test a Photo Collage Template while you are making it with Photoshop.
    CollageTemplateBuilder.jsx - Can build Templates compatible with this toolkit's scripts.
    LayerToAlphaChan.jsx - Used to convert a Prototype Image Layer stack into a template document.
    InteractivePopulateCollage.jsx - Used to interactively populate Any Photo Collage template. Offers most user control inserting pictures and text.
    ReplaceCollageImage.jsx - use to replace a populated collage image Smart Object layer with an other image correctly resized and positioned.
    ChangeTextSize.jsx - This script can be used to change Image stamps text size when the size used by the populating did not work well.
    PopulateCollageTemplate.jsx - Used to Automatically populate a Photo Collage template and leave the populated copy open in Photoshop.
    BatchOneImageCollage.jsx - Used to Automatically Batch Populate Collage templates that only have one image inserted. The Collage or Image may be stamped with text.
    BatchMultiImageCollage.jsx - Used to Automatically Batch Populate Any Photo Collage template with images in a source image folder. Easier to use than the interactive script. Saved collages can be tweaked.
    BatchPicturePackage.jsx - Used to Automatically Batch Populate Any Photo Collage template with an image in a source image folder
    PasteImageRoll.jsx - Paste Images into a document to be print on roll paper.
    PCTpreferences.jsx - Edit This File to Customize Collage Populating scripts default setting and add your own Layer styles.
    Documentation and Examples

  • There is no option to reject an incoming call in locked screen, there must be an icon on the screen for one who don't want to use lock button several times, i did'nt face this problem in last ios 6.1.3.

    There is no option to reject an incoming call in locked screen, there must be an icon on the screen for one who don't want to use lock button several times, i did'nt face this problem in last ios 6.1.3.

    A good read. Have you done anything at all to resolve your problem. Reset? Restore?
    By the way - "your products"... nobody here produced the iPhone, we are all just users. Apple is not here.

  • HT1689 I need to get my iPod to no longer be associated with the original i store account. My husband set it up through his account but now I have my own account. I don't want to go through his every time I want to make a change. how do I make this change

    I need to get my iPod to no longer be associated with the original i store account. My husband set it up through his account but now I have my own account. I don't want to go through his every time I want to make a change. how do I make this change?

    I am trying to stop using my I-pod under my husband's I-Tune account.  It was set up under his account and the only way I can use it under my account is to erase all of the songs my husband loaded on for me.  I had heard there is a duration that I-Pods are locked into to one account only, and I am trying to discover how I can use my account without having to erase everything on the I-Pod.  I know it sounds confusing but that's the way I-tunes have set it up.  thanks for asking.

  • HT201250 i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. do i keep my files in the portable hard disk when I connect it again with the macbook or the time machine will era

    i am using for first time the time machine and an external hard drive because I want to erase my macbook and start from zero files. Am i keeping my files in the portable hard disk when I will connect it again with the macbook or the time machine will erase all?
    I would like to know if after I erase all my data, empy hard drive inside the macbook, the time machine will erase all my files that I have saved in my "WD "My passport" external hard drive

    Welcome to Apple Support Communities
    Time Machine has to erase the external disk in order to make backups. Before setting Time Machine up, copy the files of your external disk to the hard disk of the Mac in order not to lose them, and then, set up Time Machine. The first backup will start automatically.
    If you want more information about Time Machine, read the Pondini's site > http://pondini.org

  • I've been using a trial of FCP x 10.1.4, went to buy and it's 10.2 - I don't want 10.2 because I'm not running the updated OS. Can't I buy 10.1.4?

    I've been using a trial of FCP x 10.1.4, went to buy it  and it's trying to sell me 10.2 - I don't want 10.2 because I'm not running the updated OS and don't want to. I have cameras that run off of OS 10.9.5. so need to keep that OS.  Is there a way I can just buy the version I used in the 30 day trial (10.1.4)?  It runs fine on my current OS.

    I'm on latest version of OS X, FCPX, LPX and FCPXML export ingests into LPX just fine.

  • I want to copy fotos to a mass storage external HD, but my emac only allow me to copy from the HD to the mac and not from the mac to the HD, how can I do it? thanks in adavance for your help

    I want to copy fotos to a mass storage external HD, but my emac only allow me to copy from the HD to the mac and not from the mac to the HD, how can I do it? thanks in adavance for your help

    The external HD might be set to Read Only on your eMac.  Try this:
    If the external HD shows on your desktop, single click the HD to highlight it.  From the Finder Menu bar at the top of the screen, click on File, pull down and click on Get Info.  At the bottom of window that opens, under Sharing and Permissions, you might see something like:
    System:  Read & Write
    Admin:  Read & Write
    User X:  Read Only
    User X being your user account.
    Good luck.

  • Why is it when i download the software update for iphone an error pops out when downloading is finish and processing file is being done...i've already tried several time but still the same result.

    why is it when i download the software update for iphone an error pops out when downloading is finish and processing file is being done...i've already tried several time but still the same result.

    Disasble the computer's security software during the download and update.

  • Hi, I have recently done some online updates and now I have to restart my mac each time for the stupid thing to recognise my internet settings. Any help gratefully accepted.

    Hi, I have recently done some online updates and now I have to restart my mac each time for the stupid thing to recognise my internet settings. Any help gratefully accepted.

    Please be specific about the updates.
    Were they Apple updates from Software Update or were they downloaded updates, including 3rd party updates from a website (Including Apple's)?

  • HT4314 I have just got a new ipod touch but my game centre games are on the old one and i don't want to start them again, can I transfer the stage i'm at or anything?

    I have just got a new ipod touch but my game centre games are on the old one and i don't want to start them again, can I transfer the stage i'm at or anything?

    The progress for some games will transfer since some games synce progress to a cental server. For other games you will have to have the backup of the old iPod.
    You can restore from backup or access the backup. See:
    How to transfer game saves between iOS devices, without iTunes, and without jailbreaking | TUAW - The Unofficial Apple Weblog
    If you have acces to the old iPod yu can make a backup by connecting the iPod to the computer and right click on the iPOd under Devices in iTunes and select Back Up. Then restore from that backup.

  • I accidentally bought an app i don't want, is there any way i can get the credit back on my account?

    I accidentally bought an app i don't want, is there any way i can get the credit back on my account?

    Apple usually offers a refund one time. You need to decide if this purchase is the one that you wish to use that one-time refund with.
    Mac App Store Support -
    http://www.apple.com/support/mac/app-store/

  • I want to upgrade my student plan to the premium one at the 19.95/month from the 15.95/month plan, I don't know how?

    I want to upgrade my student plan to the premium one at the 19.95/month from the 15.95/month plan, I don't know how?

    Are both plans Student plans?  The non-student plan for CC is $50/month for all applications or $20/month for one application.

Maybe you are looking for

  • How can I transfer a purchased dvd to my iPad?

    How can I transfer a DVD (that I purchased) onto my ipad to watch at a later time?

  • In which table Scripting data is saved

    Hi Experts, I have configured scripting in  my ic web client profile. Now i have a business requirement like for which customer which script he requested(customer name-script name).    In which sap table scripting is  saved. Is it possible at the end

  • How to fetch Positon and Job text for the employee

    Hi all, How can I fetch the Postion and Job text from the infotype HRP1001 contains in last fields. When I'm picking it takes from the last latest record, but in PA30 picks the next to the latest records some times. Please help me in this. Thank you!

  • Help with audiobooks

    if i have an audiobook on my computer already, how do i get itunes to recognize it as an audiobook? someone told me to convert the files to mp4 format, but i don't know how to do this.

  • Identifying Czech characters in an instance

    We are trying to identify czech characters in a database instance, to move them into another instance. Kindly let us know how can we do it? We are trying to do using ascii values... please share your ideas if any.