Adding image, i am too new...

i am going to add an image to the JApplet window, hm maybe panel. i am not sure. but there is something like this:
Container container = getContentPane();
container.setLayout(new FlowLayout());
i am going to use this, JLabel(), however, i am not quite not familiar to its "grammer", sry again. how should i use the JLabel to add an image? it seems i need to specify a path to it...

< i had read through the api in this site, but i cant understand its grammer
I don't understand what you mean by "grammer". The tutorial has working examples the you just copy, paste, compile and execute.

Similar Messages

  • I finished adding my transtions to my timeline.  I was having crashing issues so I shut down everything before I rendered the project and now it tells me that the project is unreadable or the file is too new for this version of final cut. What Happened?

    I finished adding my transtions to my timeline.  I was having crashing issues so I shut down everything before I rendered the project and now it tells me that the project is unreadable or the file is too new for this version of final cut. What Happened?

    What Happened?
    No way for us to know.  But if your system was crashing, there definitely was a problem.  The FCE error message you got normally indicates the FCE project file has been corrupted.  This probably happened due to whatever caused your system to crash & shutting down the system.
    First, make sure your system is running correctly.  Then, use the Finder to navigate to /users/yourusername/Documents/Final Cut Express Documents/Autosave Vault and find the most recent backup copy of your FCE project file.  Copy the file to your Final Cut Express Documents folder (copy the file, don't just move it).  Then double-click the copy to open it in FCE.  It should open ok, but will probably not have your most recent edits (transitions).  You may have to rebuild the transitions, but at least you will be back in action.

  • Error while adding Image: ORA-00001: unique constraint

    Dear all,
    I have an error while adding images to MDM I can´t explain. I want to add 7231 images. About 6983 run fine. The rest throws this error.
    Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
    Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
    Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
    Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
    Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
    Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
    Name=CodeName; Type=2; Value=207603_Img8078_gif; ArraySize=0; NullInd=0;
    Name=Name_L3; Type=2; Value=207603_Img8078.gif; ArraySize=0; NullInd=0;
    Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
    Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
    Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
    Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
    Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
    Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
    Name=CodeName; Type=2; Value=207603_Img8085_gif; ArraySize=0; NullInd=0;
    Name=Name_L3; Type=2; Value=207603_Img8085.gif; ArraySize=0; NullInd=0;
    I checked all data. There is no such dataset in the database. Can anybody give me a hint how to avoid this error.
    One thing I wonder: The PermanentId is allways the same but I can´t do anything here.
    BR
    Roman
    Edited by: Roman Becker on Jan 13, 2009 12:59 AM

    Hi Ritam,
    For such issues, can you please create a new thread or directly email the author rather than dragging back up a very old thread, it is unlikely that the resolution would be the same as the database/application/etc releases would most probably be very different.
    For now I will close this thread as unanswered.
    SAP SRM Moderators.

  • How do I know if my image resolution is too low now that the yellow triangle warning is gone?

    I am creating a book in iPhoto 11 for the first time. In older versions, I would get a yellow triangle indicating my image quality was too low for that size image. Based on other threads, it looks like iPhoto no longer gives the warning. What is the best way to know if the image will print okay? Is there a workaround so I can check the quality of the image prior to printing out the book?

    I noticed that there's not resolution waring also.  Create a PDF file of the book and look at the pages at full sized with Preview and determine if the photos are sharp enough for you.
    I ran a test with two images, one 4000 x 3000 pixels and the other 230 x 200 pixels in a 2 photo per page book page and then created a pdf of the book, Modern Lines theme.  This is a screenshot of  the page in Preview at View ➙ View Full Sized:
    This screenshot is of the same photo in a different 2 photo per page layout in the same theme.  It does look more like I expected:
    Right click on the image and select Show in New Window from the Contextual menu.  I'm really surprised the first example of the small image looked as good as it did. I expected a very pixelated image like the second example but iPhoto upsized it rather nicely. So iPhoto can upsize a small photo to some degree but I don't recommend relying on it for such small images.   And it is a very, very, very small image.  Soif your image is reasonably large you should be OK.  But check it in the PDF file.
    OT

  • Apple have a big flaw adding images to Apple TV coding error.

    Hi all, it seems Apple have a big flaw in there new version of itunes 8.2.0.23.
    So heres the problem if you have a Apple Tv system. Adding images is great however the softwares flaw is when you have a lot of images. i have over 3000, and tick boxes apear half way in the list, for know reason.
    i have add a link to show you guys and girls a screen shot...
    can anyone from apple sort this out?
    it really bugging me. as it happens of vista, xp, windows 7, and osx.
    Cheers
    Adam
    null

    apple don't monitor the forums for bug reports... this is a user-to-user support forum.
    you should report it via the official method - http://www.apple.com/feedback/appletv.html

  • Background layer seizes added images.

    I am trying to create a photo collage by scratch (not using "Collage"). First I create a new blank page for the background and save it. It is shown as "locked" with a padlock. Then I open an image file (.jpg) to add to the background layer, and I get a message that I need to unlock the background layer so I click to unlock it. However the added image locks onto the background layer and doesn't make a new layer. If I open another image file it locks on top of the others.

    The Layers panel only shows the layer(s) belonging to the currently active file. You need to arrange your image windows so that you can see your composite image as well as the source. With the source image active the Layers panel will show the source - click and drag that layer to the composite.
    So in the following, the violet image is the active image and I drag its layer to the white image I've created for my collage. In the composite image with the new layer selected I can position it where I want. Select each of the other images in turn and do the same. Refer to my previous note, you can also do this with Copy & Paste.
    When finished, your composite image and its Layers panel will look like this:
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children
    If this post or another user's post resolves the original issue, please mark the posts as correct and/or helpful accordingly. This helps other users with similar trouble get answers to their questions quicker. Thanks.

  • Images some old loading new imported images not showing

    I am working with cs4 /windows.  I can not get new images to show.  When designing the page and importing the images it shows. When "putting" publishing it does not show.
    The only thing I could see as a problem would be old (very) server?.
    I left some images that were on the server to begin with and they show up. The newly added images do not.
    http://www.twinsburgtravel.com/sandals-resorts.html

    checking into that... I am thinking it is the server being old and not being able to handle space and new images.
    thanks! will get back to you on this later this afternoon.

  • Adding images to a slide show

    I'm sure this has been asked a bazillion times here but I'm
    so new to Flash (we're talking a couple of days) that I wouldn't
    know what to search on much less what question(s) to ask. That
    having been said I'm tasked with adding images to an existing Flash
    site that has 4 slide shows (it's for a photographer). I have all
    of the .fla files and I can successfully change an image but when
    it plays it's taller than the other existing images (even though
    they are the same height in pixels) and I'm sure fixing that is
    just a couple of clicks.
    He said with false self-confidence...
    I have other, more specific, questions but it's better to ask
    them in
    this
    image to be more clear about what I'm referring to (without
    knowing the correct terminology).
    I know Photoshop, ImageReady, Illustrator and GoLive (so I'm
    no knucklehead) but Flash is a whole new ball game so I apologize
    for my ignorance. Once I get up to speed with Flash I won't be
    asking dumb stuff like this.
    As a sidebar question what's the best way to get up to speed
    with Flash? Is Lynda.com any good?
    TIA

      I had to restart and opened the file. It asked me if I wanted to try to recover the operations in process before. I said yes. Then it gave me this error which was similar to one of the first two errors I got but did not write down.
    [SQLC/interOpen] SQLError: ‘Error #3125: Unable to open the database file.’, details: ‘Connection closed.’,operation: ‘open’, detailID:’1001’

  • Director Player Error "The file version is too new"

    Short Question:
    When I try to run a projector built with D12 on WinXP, I get a Director Player Error warning dialog that contains the text "Movie C:\Program Files\...\MyProjector.exe cannot be loaded.  The file version is too new."  What could be causing this error?
    Long Explaination:
    I am trying to get an old Director 8.5 project to compile into a Director 12 projector with the least amount of work.
    This project was built as a D8.5 projector for the client around 2005 for use on Win2000 and WinXP and now they want it to run on Win7.  It uses 3D, several 3rd party Xtras and one custom Xtra build originally with Visual Studio 6.  My client has a team of programmers bringing the custom Xtra up to Visual Studio 2010 standards while I try to get the Director projector to build with D12.
    The client wants the application to look and run exactly as it did before.  The only changes we want to make are a few aesthetic logo updates, but that will come later after we get it to run as is under Win7.
    The projector uses a lot of externally referenced files including SWF, W3D, WAV, 6 external cast files (CCT) and 3 external movies (DCR files).  All of the ActionScript scripts are compiled into the projector but most everything else is loaded at runtime.  Most of the scripts compiled fine under D12 and those that didn't only needed "scriptExecutionStyle = 9" added to them in strategic locations.  During the projector build I am also rebuilding the 6 external cast files, but I am trying to use all the other external assets untouched.  Unfortunately, this also includes the 3 external DCR files because the source DIR files have been lost over time.
    While the other team works on the custom Xtra, I am trying to test my Director updates by substituting my new projector (EXE) and cast files (CST) into a fully functional WinXP installation of the application.  All other files are the old versions.
    This seemed like a good testing approach, but when I try to run the projector, I get a Director Player Error warning dialog that contains the text "Movie C:\Program Files\...\MyProjector.exe cannot be loaded.  The file version is too new."  This doesn't make any sense to me since I thought the projector would embed all of the D12 runtime libraries it needed to run. 
    The first thing the projector does is load and play a splash movie that happens to be one of the old DCR files that I cannot rebuild.  Could this be the source of the problem or is this whole idea of testing by overlaying on a WinXP install flawed?
    Any help would be greatly appreciated!

    grafixchip wrote:
    When I try to run a projector built with D12 on WinXP, I get a Director Player Error warning dialog that contains the text "Movie C:\Program Files\...\MyProjector.exe cannot be loaded.  The file version is too new."  What could be causing this error?
    This project was built as a D8.5 projector for the client around 2005 for use on Win2000 and WinXP and now they want it to run on Win7.
    It uses 3D, several 3rd party Xtras and one custom Xtra build originally with Visual Studio 6. 
    That's the problem.
    You need to update (D12 compatible) or to get rid of those xtras.
    I know, it's not an easy task.
    cheers

  • Finder not recognizing images properly (maybe overwriting new w/old)

    I am experiencing an odd and troubling issue with my 15" MacBook Pro (running Mavericks). This occurred on Saturday and I thought I was crazy, but now it has occurred a 2nd time (sort of) and I'm alarmed that this is indicative of some major issues with my machine.
    I'm working on a design project where I'm asked to create images for a mobile web page based on an old set of images. The new images need to be the exact same size, dimensions and filename as the old images so that the developer can swap them in easily.
    For that reason, I've downloaded the old set of images to my desktop, created new images and am overwriting the old images. (I am saving Photoshop files for my new images in a Dropbox folder --- it is just the final exported files that I am writing to the folder saved on the desktop.)
    So here I am, 99% finished and I go to look at the images in my finder. When I do, I see that the images displaying are the old, overwritten images instead of the new ones. There is no chance that I'm just not opening the correct folder or anything like that.
    At first, I thought the files themselves were being overwritten by their old versions, but it appears that maybe it is just the finder thumbnail image that isn't displaying correctly. When I actually open the file using Preview, it opens the correct image (new, not old). You can see an example in the screenshot attached. The old image (thumbnail) is the moneyroll. The new image is the man and the woman.
    At least the file itself appears to be correct, though I have no idea what happens if I zip these up and email them to another user on another computer. Still, I'm concerned that this suggests there is something really wrong with my machine.
    By the way, the incident I referenced on Saturday was much more troubling. It was an issue where I worked on a Dreamweaver file for 2+ hours, saving constantly before closing it. The next time I opened it later that day, it opened the old version. I thought maybe it was due to me changing the name of a folder or something and wrote it off as human error. But given what is taking place today, I'm not 100% sure that is the case now.
    Has anyone encountered this? Any insight would be much appreciated.
    Thanks.

    Yup. Thomas, have you tried replicating this in the other direction? In Terminal you can make a folder, chown it to root, get the permissions to the same as those of /Applications/Utilities,  then as a normal user, try dragging something
    into that folder? I have - this is replicable.
    This is a real bug - worked ok until 10.7.2, then broke.
    I have worked around this bug by changing the permissions on my Applications and Applications/Utilities folders so that my account has write permission there without authentication. But that not ideal from a security standpoint.
    If any developer out there could fire a Radar report off on this, I'd be much obliged.

  • Project is unreadable or too new and other problems - battery problem?

    For the third time in the last two months, my FCP project has failed to open with the error: This project is unreadable or may be too new for this version of Final Cut. (Previously I was lucky in that my autosaved versions opened, but no on this time.)
    The program also unexpectedly quits every fairly often, lately for example, upon closing a project, instead the entire application "unexpectedly quit".
    Also, over the past couple of days, once or twice upon startup, it has given me the error: Your computer's clock is set to a date before march 24th 2001.
    Are all of these problems related? Do I have bad RAM? Or a dying battery? Would that cause me to have these problems?
    I'm running 10.4.9 and FCP 5.1.4 on my G5 Dual 2.3GHz PowerPC G5 with 2.5GB of DDR2 SDRAM. I have already repaired the permissions, deleted preferences and render files. None of my external hard drives have less than 10% free space and my startup drive has nearly 50% free. I am afraid to keep working in FCP because I'm never sure if the project will open up or not the next time.
    Also I am currently living in Shanghai where it is 15 hours ahead of California and where it is also really tough to get good Apple support. Any help would be greatly appreciated!

    Jim, Thanks for your advice. I restarted using the install discs and tried to repair the disc using Disc Utility First Aid but unfortunately it stopped repairing:
    Verify and Repair disk "Macintosh HD"
    Checking HFS Plus volume.
    Checking Extents Overflow file.
    Checing Catalog file.
    Invalid extent entry
    Volume check failed.
    error: The underlying task reported failure on exit.
    1 HFS volume checked
    1 volume could not be repaired because of an error
    Does this mean I have to use Disc Warrior or Tech Tools Pro? If so, which is better?
    Also I searched for the Hardware Test disc in my original discs, but all I found was the Install Disc 1 and 2. Going to change the battery next but would still like to test my RAM...

  • How do get a dynamic image to open in new browser window

    I'm using DW CS3, mysql (MAMP)   OS 10.6.2   I'm designing my online store.  I need the customer to be able to click dynamic image/thumbnails to view a larger image in a new browser pop up window 400 x 400.  An example of this functionality can be seen at :
    http://www.designpublic.com/spot-on-square-roh-dresser
    So far I can get the separate new browser window to open with the dynamic image, using the open new browser behavior, but the on click also advances to next page with the larger image. You have to press the back button to get back to the product page.  I want the customer to be able to see the product page , while viewing larger image, and then close larger image, and still have the product page open. I don't understand why 2 windows are opening.
    Thanks for the help people!
    William

    Hi
    I did look at it but, (and this is only my opinion, I do not like such effects) it is your decision.
    If you view source you will see -
    <a href="#" onclick="popWin('http://www.designpublic.com/catalog/product/gallery/id/12706/image/91883/', 'gallery', 'width=300,height=300,left=50,top=50,location=no,status=yes,scrollbars=yes,resizable=yes'); return false;" title="Spot on Square Roh Dresser" class="gallery-image-link"><img src="http://arcsmedia01.s3.amazonaws.com/catalog/product/cache/2/thumbnail/56x56/5e06319eda06f020e43594a9c230972d/r/o/roh_dresser1.jpg" alt="" /></a>
    Which is controlled by the javascript function
    popWin()
    which you can view using the firefoxe dev toolbar - view javascript function.
    PZ

  • Project too new for final cut 6.0.2 error message

    My colleague at work has edited a rough cut on her Quad Core Intel computer. I'm using a Power Mac G5, and was able to download the project onto my desktop, but I get this message every time I try to open it: "This project is unreadable or may be too new for this version of Final Cut." We're both using FCP 6.0.2, I've done all the software updates I can, but I still receive the message. Does anyone know what I can do?

    Did the person use the same workstation you are using? If you have the other person's volume mounted on your desktop, and you are definitely running the same OS, and you have the same version of FCP, then try opening the original file, not a copy. If it opens, do a *"save as"* instead of using a duplicated copy of the project.
    Also, if they are using a different workstation, they may have another 3rd party component installed that they used, (maybe a filter or codec), that would interfere with it opening. The best way to make sure FibreJet works seemlessly in a multi-station work environment is to make absolutely sure that every station is a clone of the others. If you do an update on one, you have to do it on all. If you add an application, make sure you add it to all stations.
    If you are using a different workstation, try to open it with the other station, then mount your desktop to that station through the LAN, and do a *"save as"* to your desktop, then try opening it from there.
    Of course, do all this after trying to zip it before copying it. It only takes a second and would eliminate one aspect of the possible problem.

  • Can't open project, "catalog is too new"

    Error message reads: The document “CurrentVersion.fcpproject” could not be opened. The catalog is too new.
    So...how do I open the project?

    You're exactly right. I'm just firing up a new machine and didn't check my version against the app store — I'm still getting used to the move of pretty burly applications out of the Software Update realm into the App Store update realm.
    Thanks for the quick and accurate diagnosis blimpmedia.
    jh

  • Can't open Project - The file format is too new for this version of the pro

    Hi everyone
    I have the following Problem with my Final Cut Express: When I try to open a project i get an error message: "The file format is too new for this version of the program". (my FCE is in german, this is the google translation!)
    I have already erased all the rendering files, but no luck.
    Please Help!

    Have you recently reinstalled FCE and forgotten to update it?

Maybe you are looking for

  • System software updates possible?

    recently whwnever I try to opdate my system software from the finder the App Store app comes up. Is this the new way or .... it never says my system needs updating nor does it update my 4S, 3gs, iPad, Macbook Pro or this imac.

  • Error in module RSQL of the database interface! Please Help.

    I am getting the error "Error in module RSQL of the database interface" in my program. Below is the code snippet in which the above error is: ================================= FORM UPLOAD_PA_PB USING NB_LINE ID.   DATA: TOT_LINES TYPE I. IF ID <> 'PA

  • Page number in adobe form

    when the form execution goes to 2nd page it displays a page number on right potion lil below top margin.. can some body tell me where the setting is for that pageno.. like sy-pagno or any thing like that.. reminding you it doesnt show that page numbe

  • Quicktime plugin displaying SDP file rather than video in Internet Explorer

    I'm developing a streaming video application. Quicktime plug-in with firefox works fine. With I.E., the contents of the SDP file gets displayed (line by line) rather than the specified video. Any thoughts? Thanks, Hal

  • This application failed to start because it's side-by-side configuration is incorrect....

    This is a redirected question from here While trying to run YouCam.exe, i encountered the error message, "The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command