Trying to put a photo in a form

Hi, guys.
I'm new in this forum. I'm building an aplication and I'm having troubles in order to show a photo of a customer that comes from database.
How I'm new in Java, I'm not knowing whitch code goes where. Please, tell me what I'm doing wrong, because i'm receiving some errors from netbeans. the problem was wrote in Portuguese, but I think will be possible to understand. See, please:
Link to my code:
http://javafree.uol.com.br/topic-888244-Erro-ao-inserir-foto-do-banco-de-dados.html
Links of the photos of the problem:
1) Errors showed by netbeans:
http://javafree.uol.com.br/files_user/files/8/30/38/pane1.jpg
2) this is my form
http://javafree.uol.com.br/files_user/files/E/56/DD/formulario.jpg
If someone can help me, I thanks a lot!!!

I saw the error . Most of the error are related to java import issue.Import proper package will resolve the issue.
However its better to use JList to show the photo.

Similar Messages

  • In trying to put a photo icon in my dock, I lost all my photo albums and can't get them back.  Please help.

    I tried to put a photo icon on my desktip dock.  In doing so, I have lost all my photos file, every album, every photo.  Can anyone help me retrieve them in their album form?

    As I said for iTunes purchases:
    See:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store
    For other music you have to get them from where you originally obtained them.

  • Trying to put a photo in a project and after dragging in, it's a different picture-help!

    I'm trying to drag photo's into a project...it was all working fine and then all of a sudden, I drag something in...and it's a different picture, over and over! I've shut down, logged out...still not working.
    HELP!!!

    I'm puzzled - you put photos in events, not projects.  Are you using iMovie version 10 or 9?

  • Trying to put some photos on a CD

    I thought this would be easy, but apparently I'm not smart enough to figure this out.
    I'm on an iBook G4 and just recently, a DVD I was watching became stuck in my dvd drive. Won't come out.
    Took my laptop to the Apple store and they couldn't get it out, either. Said I'd have to send my computer away, but first I should back up all my data.
    I decided to buy a LaCie external d2 thing so I could put blank cd's in it and copy my photos.
    When I go into iPhoto and select photos, then try to Share>Burn it tells me about the disc that is stuck in my drive and that it is full, etc. Then tries to load iDVD.
    The nice man at the Apple store told me my computer would have no problem recognizing the external drive, but I haven't a clue how to get my photos copied to a blank disc.
    I don't want to move the photos, I just want to copy them onto a disc.
    P.S. I have read through as many posts here as I can, but I'm afraid the instructions are not step-by-step enough for my feeble brain.
    Thank you in advance.
    Sheree

    Hi, Sheree.
    If you want to back your iPhoto Library folder up so it will still function as an iPhoto Library, you must *copy it as an intact, single unit to one disk* — a CD, DVD, or hard drive. If it's too large to fit on one CD or DVD, you'll have to use a (larger) external hard drive instead. Backing up your library in pieces to two or more CDs or DVDs will demolish its integrity as an iPhoto database: you'll have to create a new library and import all the individual pictures on your CDs or DVDs into it. All your folders, albums, film rolls, keywords, titles, comments, ratings, books, and other things you've created in your present iPhoto Library will be lost. All you'll have is individual pictures, and you'll have to reconstruct all that other stuff from scratch.
    An external hard drive is simple and fast to use, and cheaper in time and money than backing stuff up on CDs or DVDs. It's too bad you've already bought an external CD burner. See whether the store you bought it from will take it back in exchange for a hard drive.

  • My photos are pixelated when I put them into another new document such as a photo collage.  I am trying to put a regular 8x11 image into a 4x6 photo collage of two other images.  All come out blurry.

    I need help! I am trying to put several photos that are large size 8x11 into a small 4x6 new document photo collage.  When I do my images are blurred or pixelated.  Even my fonts in the new document are pixelated and my photshop brushes as well.  I am a novice so I may be doing something wrong.  Any help would be greatly appreciated.

    I have the dinosaur PSE2 but the method should be the same in 11.
    Image > Resize > Image Size  (the path to Image Size might be different in 11). This brings up the window:
    The DPI is in the Resolution box. Enter the new value. Check the Constrain Proportions and Resample Image boxes and click OK.

  • I got my ipad 2 yesterday.  I am trying to transfer photos as albums to ipad via itunes. I put the photos in a file with sub-files as I was told. The all tranfer but into one album. Is there a way to do what I am trying?

    I am trying to tranfer photos from pc to ipad via itunes. I put the photos in a file and sub-files in order to tranfer them as albums: an main album with albums within. All the photos tranfered but into only one album. Is there a way to do this? Is there an app that would help. Also, I tranfered two albums into iphoto. I edited a photo in one album which created a new album of edits. I have removed the photos form the album but I am not able to delete the album themselves. Any help will be greatly appreciated.

    I am having the same problem and it is even bigger.
    When opening a 1-page PDF in iBooks and sending it via mail it is sent inline as preview, but the recipient cannot open the file anymore. Also on iPad and iPhone there is no "open in" possible.
    Somehow the mail app does destroy the file. What is going wrong?

  • I tried to sinc my photos and i ended up deleting off my phone all the pictures.  i only ended up with one folder, and i cant figure out how to put rest of folders from my computer back on my phone.....help

    i tried to sinc my photos and i ended up deleting off my phone all the pictures.  i only ended up with one folder, and i cant figure out how to put rest of folders from my computer back on my phone.....help
    and on a second problem.  I need to know for sure that my contacts are backed up on my computer

    Create a parent folder on your computer to store the named folders of photos that you want transferred to your iPhone. Under the Photos tab for your iPhone sync preferences with iTunes, select the parent folder. All named folders of photos within will be transferred to your iPhone as separate folders or albums.
    Regarding your 2nd question, this should be easy. Your contacts should be available on your computer with or without an iPhone or any cell phone, which can be lost or stolen.
    Although contacts are included with your iPhone's backup which is updated by iTunes as the first step during the iTunes sync process, not a good idea to depend on this either since the iPhone backup includes a significant amount of other data. Contacts are designed to be synced with a supported address book app on your computer. With Windoze, this can be with Outlook 2003, 2007, or 2010 along with syncing calendar events and notes, or with the address book app used by Outlook Express with XP and by Windows Mail with Vista and Windows 7 called Windows Contacts for syncing contacts only.

  • Is it possible to put the photos on my iPhone 5 onto my MacBook Pro? The photos that I am trying to do this with we're not taken from the phone. They were imported from a computer.

    Is it possible to put the photos on my iPhone 5 onto my MacBook Pro? The photos that I am trying to do this with we're not taken from the phone. They were imported from a computer. When I open image capture it only shows the photos that were taken from my phone and not the other ones. Please help. Thanks.

    It is not possible to put synched photos on your iPhone from one computer into another.

  • I AM TRYING TO PUT TEXT ON A PHOTO AND USE THE T ON THE BOARD BUT I GET A MESSAGE SAYING PROGRAM ERROR AND IT DOSNT LET ME PUT ANY PRINT .

    I AM TRYING TO PUT TEXT ON  A PHOTO USING THE T ON THE BOARD. I GET  A MESSAGE SAYING PROGRAM ERROR AND IT DOSNT LET ME ADD TEXT.

    There's something wrong with your Photoshop install.
    BOILERPLATE TEXT:
    If you give complete and detailed information about your setup and the issue at hand, such as your platform (Mac or Win), exact versions of your OS, of Photoshop and of Bridge, machine specs, what troubleshooting steps you have taken so far, what error message(s) you receive, if having issues opening raw files also the exact camera make and model that generated them, etc., someone may be able to help you.
    Please read this FAQ for advice on how to ask your questions correctly for quicker and better answers:
    http://forums.adobe.com/thread/419981?tstart=0
    Thanks!

  • I am trying to make a photo book thats i can put text over a picture

    I am trying to create a photo book that allows me to put text over a photo.
    The only book that kinda allows for this is the photo essay book but the text box is really small and cannot be adjusted.
    The older version of iphoto allowed you to plave a pictures behind a text page and fade the picture into the background.
    Can anyone help???
    do i need to revert to the old iphoto or is there a way to have a picture in the background with a bigger text box on one of teh photo books now avalaible?

    You can still have a photo for a text page background.  Go to the layout pane for the text page and click on the photo background icon:
    Then drag the photo you want as the background into the page.
    OT

  • I am trying to order a Photo Book from iPhoto, but it just locks up.  I even put the computer into safe boot and it still locks up?

    I am trying to order a Photo Book from Iphoto, but when I hit the buy book button it just locks up the screen.  I even put the computer into Safe Boot mode and get the same results.
    What else can I try?
    thanks,
    Jeff

    iPhoto forum for iPhoto issues:
    https://discussions.apple.com/community/ilife/iphoto

  • I was trying to move 4000 photos to a storage drive and ended up putting them on the desktop.  My computer is now frozen.  I have tried to restart several times.

    I was trying to move 4000 photos to a storage drive and somehow it ended up on my desk top.  Now it is frozen.  I have powered down a few times and still comes back up but you cannot do anything.

    Try to wait it out. Moving 4000 photos to the desktop can take a long time. After awhile, if the mac responds go to edit - undo move. That may place the photos back in their original location.

  • "An error occurred while trying to save your photo library..."

    Installed iPhoto6.
    Started app. It said it would take a few seconds or minutes to upgrade.
    About 6 hours later after churning on thumbnails it is now claiming this error over and over with some time that goes by in between:
    "An error occurred while trying to save your photo library."
    "Some recent changes may be lost. Make sure your hard disk has enough space and that iPhoto is able to access the iPhoto Library folder."
    It says I have 22,759 photos in Library. The Library was a subset of my images, named "iPhoto Library 2005" and it was intentionally kept below the 25,000 limit of iPhoto5.
    Since Steve claims iPhoto6 can easily handle 250,000 photos, I clicked on the upgrade button with confidence. This now appears to be a mistake. Last night I was working on an iDVD for the local school and the majority of that work has simply vanished. There were 320 photos. I spent hours adding keywords, ranking, adjusting temperature, focus, exposure, etc.
    Of the 320, only 16 photos survived. They are 16 in a row from the middle of the roll near the end but not at the end. The roll name was lost. The name is now just "Roll 226" and none of the photos have keywords. I know at least one of the 16 should have the keyword "DUPE" and the ranking 2 STARS since it precedes a double that I ranked 2 during a slideshow, sorted by ranking, and dragged to the DUPE keyword. All 16 should have the ACROCK keyword which I initially assigned to all photos.
    Again, 304 of 320 have vanished and the 16 that remain have no keywords or rankings.
    I watched the slide show in iPhoto5 three times with different music candidates so I know the keywording and rankings evaporated in iPhoto6. I also clicked ACROCK and option clicked DUPE and POOR so that all of the music program photos except dupes and poor images would vanish. I only deleted one photo so there were not a lot of changes to the library in terms of photos in it. I cannot think of any reason why the 16 chosen survived. Only two were placed in a DVD dropzone and they are scattered amongst the 16 survivors.
    Also, the ACROCK and DUPE keywords are also gone while the POOR keyword added in August is in the keyword table just fine.
    I exported these 320 photos last night to iDVD and tried almost all of the different themes and I dragged about 10 different photos to the dropzones, hit play, hit motion, etc.
    It seems very strange that 16 photos from the middle of the pack would survive.
    It seems extra odd that iPhoto5 and iDVD treated these as "established" photos, not photos hanging in the wings somewhere ready to vanish in an upgrade.
    I gracefully saved and quit iDVD and iPhoto5 and there were no crashes and nothing strange happened while making the DVD. I was hoping today to try out the new themes and maybe find one that is just right for the kids. Instead, about 300 of 320 photos of the kids went bye-bye along with all the work on the photos!
    I'm nervous that many more photos are missing but I will need to do a ton of checking to see what else has been deleted by the upgrade.
    The user message that iPhoto6 presents is nearly useless and strange. It offers little if anything to go on in terms of a repair procedure. After saying an error has occurred, it says some recent changes could be lost but doesn't expand at all on what they may be or why.
    From my experience, recently added photos, keywords, keyword assignments, rankings and maybe more can all be lost. To compound matters, before the upgrade it says that you cannot go back to the prior (working!) library in iPhoto5. Beware!
    It finishes by suggesting two vague steps to take. The first is to make sure your disk has "enough" space. How much is "enough"? It doesn't say something like X GB available, Y GB needed. A user would have no clue about how much space to free up. I have over 17 GB and assumed that would be enough. I sure hope it doesn't require double the space of the existing library. I would hope it has a smarter algorithm than that since 23,000 photos at about 3 MB each maps to about 70 GB. That's a lot of "temporary" space to require to perform an upgrade. Since the upgrade/error message provide no details (unlike package installers which supposedly tell you how much space you need), users like me would have no clue if 70 GB is plenty or not enough.
    I found 24 GB secretly used by iPhoto 5 for an iPod Photo Cache and a tech bulletin saying this just grows and grows without control and it can be deleted SO I wouldn't put huge hidden disk usage past iPhoto6.
    The last none-to-helpful suggestion is that a user make sure that iPhoto is able to access the iPhoto Library folder. Huh?!??!?
    Wouldn't this be a great thing to confirm via software before setting about on 6+ hours of work, especially if there is an error message hard-coded in the software confirming that Apple knows the result may be losing valuable customer photos and hours of work on enhancing, keywording, creating DVDs, etc.?
    Of course. This appears negligent. To know that customer file loss will likely result but not checking these things out in advance before taking that risk seems like putting the cart before the horse at customers' expense & pain and certain loss of irreplaceable family photos (for the, say, 80%+ of iPhoto users that "plan" to get a backup routine established?).
    I got burned in the iPhoto5 upgrade as well, losing photos, so I was sure to have a backup so it wouldn't happen again. Most I fear won't be so fortunate so be advised of the risk and work with copies of your photos only.
    Also, why would iPhoto5 have all the permissions it needs to store, edit, tag and otherwise work with 320 photos added last night? Why would version 5 have plenty of permissions to use the folders and the photos in them. Why would iPhoto 6 suddenly lose those permissions or not have enough? This hardly makes any sense. The only way the permissions were set, the iPhoto libraries got created and the albums got created was by dragging a folder of images onto the albums pane in iPhoto5. So, iPhoto5 set all the permissions, everything is under one user account and there should be no surprise permissions for iPhoto6 to deal with.
    It seems unbelievable that iPhoto 6 couldn't do what iPhoto 5 was doing. I never changed permissions and never touched files in the iPhoto 5 structure.
    I can only guess that recently added keywords, recently added photos and recently added rankings and keyword taggings linger in some at-risk staging area that a version 6 upgrade doesn't know how to deal with. This seems like a lame way to code this app so I don't consider this a good guess but what else could it be?
    Anyone else have a better hunch at a root cause?
    Anyone else have an idea of a cure?
    Anyone else run into this?
    It sure doesn't look like there was a test case for having near 25,000 photos (an iPhoto 5 documented requirement), working with the latest roll and then doing a version 6 upgrade because it failed miserably--user data loss--without any special effort to find defects. In a former life I tested software and released software was much more difficult to break than this.
    I would appreciate any other user experiences/solutions related to this problem. I am reluctant to import another 22,000 photos from iPhoto Library 2004 only to find more photos go poof without any rhyme or reason.
    Thanks in advance for your help and I hope this alerts others to a potential for valuable photo loss (i.e., back up before you upgrade, verify iPhoto Library permissions--whatever that means--and have scads of disk space available assuming there's any truth to the error message!).
    --Sam
    G5 Dual 2.7 GHz 2 GB DDR SDRAM   Mac OS X (10.4.4)  

    I'll check if I have copies of copies of copies. This could take a while due to the number of files.
    I picked up a brand new 300 GB Western Digital hard drive thinking 20GB or so was not enough for temp files for upgrading and/or importing.
    I formatted it as a mac os extended, journaled drive, not case sensitive, one full-size partition. I started iPhoto6 with the option key. I had a CF in my other WD 300 GB (with media reader). iPhoto6 asked about the photos on the card. I told it not to download those (again). Because I was holding the option key down, iPhoto6 asked if I wanted to select a different library or create one. I created one on the brand new, 100% empty 300 GB drive. I'm not sure if/where iPhoto6 creates temporary/cache files (like iPhoto iPod Cache folder) as it sets up a new library. I was hoping the empty 300 GB drive would give it ample room to load an existing iPhoto5 library.
    When I dragged an old iPhoto5 Library onto the new iPhoto6 Library Album pane. I saw the "Importing..." start and it went on and on and on and... I let it run for HOURS and HOURS. When I checked around midnight, it had crashed. When I started it again, it said it had run across some huge number of stray photos.
    I have no idea why iPhoto6 would have trouble importing an iPhoto5 library that was below the 25,000 photo mark for 5. This is especially bizarre since iPhoto6 claims it supports 250,000 photos!
    I'll be trying to figure out if these stray photos got imported as dupes, if they lost iPhoto5 keywords, etc. I fear something different but equally bad happened since the number of photos it came up with was like 79,000--again many stray photos that didn't make it into the first import for no known reason. Since libraries in iPhoto5 were around 25,000 or less, I'm not sure what's happening.
    Maybe there's a cache or temp file still created on Macintosh HD and not on the empty new 300GB drive and a bug exists for imports when space on Mac HD is "low" (i.e., under 3.5 GB). Maybe it's seeing thumbs as files it should import? Maybe it's seeing Orig and Modified images as worthy of reimporting?
    I had told it not to import dupes but who knows if it goes by file name, checksum, byte-for-byte comparison, etc.
    I'm not sure if I can even pull up iPhoto5 and 6 at the same time now to scroll through the libraries to see if dupes, thumbs, original/modifies/etc. are showing up to boost the count from under 25K to 79K!
    Ideas? At least I know I'm not the only G5 dual user with this problem!
    --Sam
    G5 Dual 2.7 GHz 2 GB DDR SDRAM Mac OS X (10.4.4)
    G5 Dual 2.7 GHz 2 GB DDR SDRAM Mac OS X (10.4.4)

  • I have 2 iphoto libraries. How can I delete one? I have tried to put one in trash but it deletes both. Help

    I was transfering photos from an external hard disk. While doing this somehow or another I created another library. I have an additional icon on my desktop. I tried to put it in the trash but then it deletes iphoto from the computer. I just would like to get rid of the icon without deleting iphoto.

    Welcome to the Apple Support Communities
    If you've copied your iPhoto library to an external disk, it's normal that it appears. Anyway, open iPhoto holding Option key and look at the library you want to delete. At the bottom of the window, you must see the directory where it's, so just go here and delete your library

  • IPhoto: An error occurred while trying to save your photo library.

    "An error occurred while trying to save your photo library.
    Some recent changes may be lost. Make sure your hard disk has enough space and that iPhoto is able to access the iPhoto Library."
    Basically, the same issues as this thread:
    http://discussions.apple.com/thread.jspa?threadID=1588998&tstart=0
    I have tried the BatchMod with no luck. If it matters, this is on an external hard drive and I am the only user on this computer. Looking at the info of the library file, I have read/write/execute permissions and my group has read permissions only. I thought BatchMod would change these permissions but it doesn't seem to work.
    Actually, I restarted my computer and it works now. But I am still worried it might happen again. Has anyone else encountered this problem?
    Thanks.

    Welcome to the Apple Discussions. If it's working now it could have been a one time hiccup. Do you backup your library on a regular basis? If not you definitely should.
    If the library gets damaged/corrupted you won't lose your photos but can lose all of your organizational effort that you put into the library. If the external HD crashes then you will lose all.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier versions) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. There are versions that are compatible with iPhoto 5, 6, 7 and 8 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    NOTE: The new rebuild option in iPhoto 09 (v. 8.0.2), Rebuild the iPhoto Library Database from automatic backup" makes this tip obsolete.

Maybe you are looking for

  • Variavel de sistema no Crystal

    Como utilizo um campo variavel do sistema do SAP para o crystal Exemplo o campo de centro de Lucro numa Nota Fiscal de entrada. Estou fazendo um resumo da nota com todas retenções e impostos fretes e etc no crystal

  • Help needed in getting file url

    Hi, I work in a project where i need to get the url of the specified file. The code for that is as, URL fileURL = Thread.currentThread().getContextClassLoader().getResource(); The required resource is available in the concerned path. But the file url

  • Inventory - Historical load from BF to 0IC_C03 changes current stock qty

    Loaded 0IC_C03 from 2LIS_03_BX to create opening balance. Compressed with "Marker Update" (Unchecked). Ran a report to display opening stock (0TOTALSTOCK). Report matches perfectly with MMBE in source system. Next, I loaded historical movements from

  • M$view need to create with Fast Refersh?

    Hi All, I have to create m$veiw with Fast Refresh for only two table join. CREATE MATERIALIZED VIEW pup_sub_poc_mv REFRESH FAST START WITH SYSDATE NEXT SYSDATE+(1/48) select a,b,c from x, y where x.id=y.id and x.a in (select a from z) i am getting be

  • How to call adobeform multiple times for multiple selection.

    Hello Experts, Good morning. I am new to ABAP, I am working on one program which is used for printing a bank voucher for that i have to select multiple document number (BELNR), it is running fine with selecting a single document but for multiple sele