Images Won't Appear in Simple Program

I am working on a small game project and I can't get Java to draw images to the screen. I started developing on a mac, and the code worked there. I switched to my new PC, and now everything in the program executes, but the images just don't show up. Even the sample imagetest.java program from Sun's Core Java 2 V.1 book doesn't work. I don't know if the source will help, but I will post it if somebody asks. I've reinstalled the JDK a couple of times, in different versions (I just got the latest). Most images in applets won't show up either, although I have seen it work once (no idea why). Any suggestions on how to get images to show up?

For myself, I have found that this occurs when the program couldn't find the image. Instead of giving an error, it just doesn't display anything. Maybe the path to your images changed when you changed platforms?

Similar Messages

  • CDs, DVDs, disk images won't appear in Sidebar or on Desktop

    Hello,
    Brand new iMac 2.16, right out of the box.
    CDs, DVDs, and Disk Images won't appear on the desktop or in the Sidebar. Nothing is shown over the horizontal gray line at the top of the sidebar, no Macintosh HD, Servers, etc. Disk Images are fully functional, ie Disk Utility recognizes and mounts them just fine.
    I checked Mac Help and followed its instructions:
    (1) In Finder preferences:Pane:General, all 'Show These Items on the Desktop' boxes are checked.
    (2) In Finder preferences:Pane:Sidebar, I checked all boxes under "Show These Items in the Sidebar. BUT these changes are NOT retained. After I close the Preferences, the Sidebar does not change. If I re-open the Sidebar preferences, the relevant boxes are now unchecked, as if I'd never done a thing.
    Restarting was the only way to fix the problem. Thereafter, the upper items in the Sidebar (Macintosh HD, external drives, iPod, CDs) sometimes SPONTANEOUSLY disappear. They still show up on the desktop, but tweaking the Sidebar preferences is again ineffective. Restarting is the only solution.
    Thank you for your help,
    Andy

    Hi Andy, Welcome to Apple's Users Help Users Forums.
    1] Everything elmac says is helpful and correct.
    2] An upgrade to 10.4.8 with the 10.4.8 Combo from blue apple / Mac OS Updates might fix your hiccup. If you don't want .8 then .7 combo.
    3] [OT] For some minor security issues, it is better to surf the internet in a standard account. If you are surfing in an admin account then here is how to switch and maintain prefs.
    Set up a new account in System Preferences / Accounts / +
    and make it have admin priviledges. Be sure to remember short name and password since you will be asked to "authenticate" when running in your standard account. This new account is often called "test" in these forums.
    Once that is done convert your regular account to standard.
    Good Luck, JP

  • Images won't appear in local preview

    Hi. I have a page I laid out in dreamweaver. It looks good.
    When I try to add new images, I can see them in the layout,
    but they do not appear when I do an F12 preview.
    My old images that do appear are in the same folder as the
    new ones I'm trying to add that won't appear.
    I tried to copy an existing image that appears and pasting it
    --they both appear in the layout, but an F12 preview only shows the
    old one even though it is the same image.
    I even tried to open a dreamweaver tutorial, insert and image
    and preview it, and it didn't work.
    Can anyone help me please.
    Thank you,
    Melissa

    This usually means that you are linking with root relative
    links. Enable
    Preview using Temp files in your Preferences, and then you
    will see them.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "actrihop" <[email protected]> wrote in
    message
    news:f0irm3$hli$[email protected]..
    >
    > Hi. I have a page I laid out in dreamweaver. It looks
    good.
    > When I try to add new images, I can see them in the
    layout, but they do
    > not
    > appear when I do an F12 preview.
    > My old images that do appear are in the same folder as
    the new ones I'm
    > trying
    > to add that won't appear.
    > I tried to copy an existing image that appears and
    pasting it --they both
    > appear in the layout, but an F12 preview only shows the
    old one even
    > though it
    > is the same image.
    > I even tried to open a dreamweaver tutorial, insert and
    image and preview
    > it,
    > and it didn't work.
    > Can anyone help me please.
    > Thank you,
    > Melissa
    > --
    >
    >

  • Images won't appear!

    This is a rather odd thing that is happening in Apex, I have never seen this before we have tried very many methods.
    Here's the story ...
    We have installed Apex on our Oracle App Server R3, and we have set up a load balancer. Everything works fine in the application except all of the images in the images/htmldb underlying subdirectories. We did a lot of debugging to see which images were appearing when logging onto Apex. For some ODD reason everything in the images/menu directory appears fine, actually all of the images directory under the images/htmldb do appear fine too ... EXCEPT for images in the underlying subdirectorys of htmldb/builder/, htmldb/icons/, htmldb/misc/ etc.
    What is going on?
    Here are the methods we have already attempted...
    1) Check the dads.conf file, everything looked fine the aliases were set up file for /i/ and /c/, we restarted the server and everything, still no luck. If the images from the menu directory do appear, then the alias shouldn't even be the problem.
    2) Manipulated the dads.conf, we manipulated the aliases for /i/ and /c/ and copied the entire htmldb/ directory into the menu directory, just to see if the images would appear and change the /i/ alias to look into the /menu/htmldb/, again no luck.
    3) Recopied the entire images directory, we deleted the entire images directory from the server, and re-copied a fresh copy over from Oracle. Just in case the images were corrupt, again no luck.
    4) We moved the images from the htmldb/builder directory to the htdocs directory, because this is a global directory, everything should be accessible by the browser, typed into the url, still image not found.
    After every step, restarted the http server and cleared the cache from the browser, still no luck.
    The only odd thing is that when we commented out ALL the aliases from the dads.conf file, the images from images/menu were still appearing, even after clearing the cache. These image files were being read from somewhere! We even looked at Apex after deleting the entire images directory, and everything did not work (that was expected). I am not familiar with the infrastructure, but something weird is going on here, is there some server cache that needs to be cleared each time or something?
    We tried so many methods for hours, please let us know if anyone has come across this dilemma, it shouldn't be rocket science, the images are there ... typing in the direct URL to the images in the images/htmldb/builder directory should let the image appear in the browser, am I not right?
    Is there something I am missing?
    Any advice is appreciated.
    Ann

    I'm not real familiar with how alot of the back end stuff works, but we had an issue where we added an image. It displayed OK in Internet Explorer but not FireFox. We had to upload the image into the SHARED COMPONENTS\FILES\IMAGES page. We then had to reference the image like this:
    <img src="#APP_IMAGES#holly.png">
    Another newbie,
    Dennis

  • My Images won't appear & links won't when i export it

    Ok, I am a rookie and new to this whole Dreamweaver thing.
    But I am trying to put together a page and it works fine until I
    try to zip the files and send them to someone. Then my links won't
    work and my images appear as red x's. I am sure this is something
    simple for many of you but I am pulling my hair out. Here is a copy
    of the code, if anyone can dumb down their response to help me,
    that would be grand! Thanks in advance.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <title>Butte Senior Community</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <style type="text/css">
    <!--
    body {
    background-color: #FFFFFF;
    background-image:
    ; background-image: url(/Assets/background.jpg);
    a:link {
    color: #669933;
    text-decoration: none;
    a:visited {
    text-decoration: none;
    color: #669933;
    a:hover {
    text-decoration: underline;
    a:active {
    text-decoration: none;
    .style1 {
    font-size: 36px;
    font-weight: bold;
    .style3 {
    font-family: Pristina;
    font-size: 36px;
    color: #000066;
    .style4 {
    font-family: "Times New Roman", Times, serif;
    font-size: 24px;
    color: #000066;
    .style6 { font-size: 18px;
    font-weight: bold;
    color: #669933;
    .style6 {color: #669933}
    -->
    </style></head>
    <body>
    <div align="right">
    <div align="left"></div>
    <div align="center">
    <table width="1000" border="0">
    <tr>
    <td><div align="center"><img
    src="Assets/Header.jpg" width="637" height="125" class="style1"
    /><br />
    <img src="Assets/welcome_button.jpg" width="127"
    height="45" class="style1" /><a
    href="Butte_Ne.html"><img src="Assets/Butte_button.jpg"
    width="127" height="45" border="0" class="style1"
    /></a><a href="Nursing_Home.html"><img
    src="Assets/Nursing_button.jpg" width="127" height="45" border="0"
    class="style1" /></a><a
    href="Assisted_Living.html"><img
    src="Assets/Assisted_button.jpg" width="127" height="45" border="0"
    class="style1" /></a><a
    href="Contact_Us.html"><img src="Assets/Contact_button.jpg"
    width="127" height="45" border="0" class="style1"
    /></a></div></td>
    </tr>
    <tr>
    <td><div align="center">
    <p> </p>
    <p><span class="style3">Welcome to the Butte
    Senior Community! </span></p>
    <p> </p>
    </div></td>
    </tr>
    <tr>
    <td><div align="center" class="style4">
    <p>At the Butte Nursing Home and Assisted Living
    Center we want you to have all<br />
    the comforts of home with the support you may need. Our goal
    is to start your<br />
    day out with a warm smile and end your night with a sense of
    security. </p>
    <p> </p>
    <p><strong>We are here to lend a helping
    hand!</strong></p>
    <p> </p>
    </div></td>
    </tr>
    <tr>
    <td> </td>
    </tr>
    <tr>
    <td><div align="center"><span
    class="style6"><a
    href="../Butte%20Senior%20Community%20Redesign/Index.html">Welcome</a>
    | <a href="Butte_Ne.html">Butte, NE</a> | <a
    href="Nursing_Home.html">Nursing Home</a> | <a
    href="Assisted_Living.html">Assisted Living</a> | <a
    href="Contact_Us.html">Contact us</a>
    </span></div></td>
    </tr>
    </table>
    </div>
    <p>  </p>
    </div>
    </body>
    </html>

    > Spaces in file names aren't a good thing
    > Neither is lower case. <==== HUH?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Piers" <[email protected]> wrote in message
    news:er3psj$sdt$[email protected]..
    > When you zip the files, are you including the images in
    the zip file? They
    > will need to be in the same relative place to the file
    that they were when
    > they started.
    >
    > Oh, and few small things:
    > Spaces in file names aren't a good thing
    > Neither is lower case.
    > You've used a non-standard font in style3 - Pristina.
    Change it to
    > something
    > we all have on our systems.
    >
    >
    > HTH,
    >
    > Piers
    >
    >

  • Images won't appear in Drop Zones

    This has been bugging me for a while now. I am trying to create an easy to use/burn presentation platform for a recent group trip I went on. I'd like to eventually be able to burn copies to a DVD so that others may have a copy of our adventure. At first I was going to just create a slideshow using iDVD, when I came into these troubles I switched to using iMovie to create a slideshow with the music I want and the transitions I want. That still leaves the embellishment portion of it. I don't want the menus to look boring.
    What I am finding to be troublesome is that I try to import images from iPhoto into iDVD and they some times, more often than not, will not appear in the drop zones on the larger screen. They will show in the editor but not above. I've tried changing themes, same thing. I have also tried to bypass iPhoto by importing the images I want into the drop zones by using the File>Import>Image... route.
    Please, any help would be GREATLY APPRECIATED!!!
    I'm running on a Mac OS X v10.6.8 with 2.26 GHz Intel Core 2 Duo with 8GB 1067 MHz DDR3.
    The iDVD is version 7.1.1

    hi there, I am confused when you stated you cant "import images from iPhoto into iDVD"  . 
    The way I get photos into the drop zones is to drag the photos from the media browser on the right hand side of the screen. I don't "import" .. unless I'm misinterpreting the use of that term. here is my idvd project and note on the bottom right hand side I've clicked Media.  Then I click Photos on the top and it shows me all my photos. Thats where I drag and drop FROM.
    Note you can also drag and drop photos from a finder window. The only time I have issues is if my photo is a landscape and I'm trying to stick it into a box that is portrait and vice-versa.
    does this help at all?

  • Please help - image won't appear in iTunes

    Hi
    I hope you can help as we seem to have followed all the rules but the image for our podcast still hasn't appeared after more than two weeks.
    RSSFeed:
    http://www.podooch.com/corporate/dirtydancing.php5?action=subscribe&chid=220&corpid=179
    Format: jpg
    Size: 300px x 300px
    Resolution: 72 DPI
    We have also changed the file name so that iTunes will recognise it as new (as suggested in another post).
    Any help would be greatly appreciated!
    Thanks in advance.
      Windows XP  

    Hi ..
    Follow the instructions here >  iOS: Device not recognized in iTunes for Mac OS X
    The iPhone should be recognized in iTunes no matter which user account you are logged into.

  • VIDEO image won't appear in DVD player

    Hi guys! I need some help over here.. I tried to record a DVD disc with the iDVD 7 and it burned fine...When i put the disc inside the DVD player, the menu was fine (and also it's background sound), but the problem happened when i clicked the button to begin the video... The sound and the subtitles were fine, but the *video didn't appear*... I'm new in MAC so i don't know if it's configure problem...I also tried creating a Image File through the iDVD and recording through the Disc Utility, but the same problem happened...
    The DVD i am using is DVD-R...my player have always accepted this kind of disc, but i made them with PC...MAC is another thing...
    Can you guys tell me how can i solve this?
    Regards,
    Renata
    Rio de Janeiro

    Hi
    Brand of DVD - I use Verbatim DVD-R
    Kind of movie material used ? Kind of Camera ?
    I use miniDV (streamingDV .dv)
    How did You get movie into iDVD
    • Share to iDVD from iMoviw (I don't)
    • Drag and drop
    • Imported video from within iDVD
    Yours Bengt W

  • After downloading Itunes, images won't appear and songs won't play

    I have an issue that hasn't been fixed since I the itunes update about a month or so ago. All of a sudden, I cannot see any images in itunes nor can i play any music at all either in my playlist or from the music store. i tried to contact customer support, but they were not able to help me. i've even tried uninstalling and reinstalling itunes and that hasn't helped. can anyone help me with this issue so i can continue using my itunes? thanks.

    those symptoms (arriving together like that) usually indicate a broken QuickTime. (itunes needs a fully functional QT in order to work properly.)
    the first thing we'll try is a careful standalone QT 7.1 reinstall.
    download and save a copy of the QT 7.1 standalone installer to your hard drive. (we'll run the install from there rather than online.) switch off antivirus and antispyware applications prior to the install.
    Quicktime 7.1 Standalone Installer
    if that install goes through okay, does your itunes behave properly again?
    (if you get an error message on the QT standalone reinstall, let us know what it says. include error message numbers if you're getting any.)

  • Wrapper div background image won't appear in browser...

    Hi All,
    Here's a link to the test site:
    http://www.davidcoshdesign.com/test/tee
    If you go to 'About' – top right nav, there should be two vertical 'lines' running all the way down the page(s), either side of the main body copy. 
    All the pages are created from the same template.
    It's a repeating background image in the #wrapper div.  I can see it DW, but not in any browsers.
    I guess it's not linking somehow... but can't figurte it out.
    Also, the layouts on the 'Partners and 'Philosophy' pages 'jump' when you go to them.  Again, I guess there's an error in the code somewhere...
    Any help with these two things would be very much appreciated.
    RP

    Change this -
    #wrapper {
        background-repeat: repeat;
        background-image: url(assets/images/columnedge.jpg);
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        font-style: normal;
        line-height: 19px;
        font-weight: normal;
        color: #999;
        text-decoration: none;
        width: 980px;
        margin-top: 0px;
        margin-right: auto;
        margin-bottom: 0px;
        margin-left: auto;
        height: auto;
    to this -
    #wrapper {
        background-repeat: repeat;
        background-image: url(assets/images/columnedge.jpg);
        font-family: Arial, Helvetica, sans-serif;
        font-size: 14px;
        font-style: normal;
        line-height: 19px;
        font-weight: normal;
        color: #999;
        text-decoration: none;
        width: 980px;
        margin-top: 0px;
        margin-right: auto;
        margin-bottom: 0px;
        margin-left: auto;
        height: auto;
       overflow:hidden;
    You need to clear the floats so that div#wrapper will contain the contents.  To fix the jumping, add this to your CSS -
    html { overflow-y:scroll; }

  • Images won't appear when file is loaded

    I currently have a PC at home and I started a project there with images imported from an illustrator file.
    It worked fine at home until I brought it to school and loaded it on a Mac. All my images are blank, however there is still a bounding box around them but there's nothing inside. Even the files in the project panel don't show up when I drag it to another composition. I tried to import the illustrator file again and when I did, the images worked, but that would mean I would have to redo the whole project when I've already finished it.
    When I took the file and loaded it at home again, it worked fine. It seems like I need to update my files for it to show, but I'm not exactly sure how. Does anyone know how I can fix this error and get the images loading? It would be greatly appreciated, thanks!

    Check whether the machine at school has correctly been updated to A§ 8.0.2. Several not so minor bugs were fixed with the updates. also check your files on Illustrator (Mac) and if necessary, re-save them from there.
    Mylenium

  • N96 Photo Editor - Edited image won't save

    When I open a photo, and select 'Edit' from options, I rotate my photos to the correct composition (as they were taken upside down!) and then from options I select 'Save'. The progress bar appears to indicate the device is processing the change.
    However on returning back to the image menu, the photo simply reverts back to how it was before. Which is annoying as with the auto rotate switched on its impossible to look at photos when are upside down!
    Am I missing something out or is there a bug in the image editor?
    Hope you can help, thanks
    Solved!
    Go to Solution.

    Hi,
    I've just tested this and you are right - it does revert back to displaying the original photo after saving. If you then just click "Back" to return to the menu, you may no see the image depending on which option you selected when you went into "Photos".
    The new image won't appear in "Captured items" because it is not an image actually taken with the phone's camera. If you go back to the Photos menu and select "All", your edited image should appear in there.

  • Hi, I have trouble loading my iPhone 5 photos into Aperture. The iPhone icon appears in the import window, but the images won't show up in the loading window.

    Hi, I have trouble loading my iPhone 5 photos into Aperture. The iPhone icon appears in the import window, but the images won't show up in the loading window

    The iPhone icon appears in the import window, but the images won't show up in the loading window
    Do your images show, if you disable the option "Do not import duplicates"? If yes, then check, if the images have already been imported, eg. using Photo Stream, if you are using Aperture 3.3 or later.
    Aperture 2, Mac OS X (10.6.8)
    Is your profile signature above still current?

  • I need to install a program and a message that says "image not recognized" appears

    I am working in the asctimetables software and I need the new version but when installing it a message that says "image not recognized" appears. What can I do?

    I found this on the asctimetables download page:
    The problem is that although the Apple icon is shown (red oval in lower right), the system requirements shown (red rectangle in lower left) show Windows machines only.  Further, the download is a .exe file that only runs on Windows.  So I suggest you contact asctables' help folks to see whether they really do have an OS X version available.

  • Disk images won't unmount/eject for admin user, DVDs & iDisk also affected

    This problem started when I was on Tiger, and seemed to follow me onto Leopard.
    It only affects me, the primary user on my Mac. *One other user on the computer; she also has admin level access and does not have any of these problems.*
    Here's the deal:
    *Once mounted, disk images won't eject/unmount.*
    - Dragging to the trash can doesn't work. The eject icon appears, but nothing happens.
    - Ctrl-click does not show Eject as an option when highlighting the mounted image.
    - CMD-E doesn't work
    - EJect doesn't appear as an option in the finder menu
    - Clicking on the Eject button in the sidebar of the Finder window doesn't work.
    - I've logged out, rebooted, repaired permission, and installed a new OS (clean install of 10.5, then did the import of my old user settings. Since I had the problem in Tiger, it's clear the problem followed me, but what the heck causes it?)
    *The only way to unmount/eject a disk image is to use the Disk Utility Program.*
    *DVDs also can only be ejected via Disk Utility*
    The iDisk connection can only be killed by opening Activity Monitor and killing the webdavfs_agent process.
    Would love some help. I've searched a lot and have a fair amount of folks with this problem, but no real solution.

    That'll work; however, then the OP has to reset all of his preferences. Easier would be to log into the newly created admin account, backup the bad account's folder, delete the bad account, selecting the save data option (which is stored in /Users/Deleted Users/ as a disk image), recreate the bad account using the same username/password combo, log out and back into the recreated original account. Mount the saved data dmg file in /Users/Deleted Users/, open the /Library/Preferences/ folder from the saved data, open the current /Users/restored account/Library/Preferences/ folder, and slowly copy plist files from the saved data folder to the current one. Log out and back in to ensure there's no conflict and things still work correctly. Resolving these kinds of conflicts is a laborious process, but not as laborious as resetting preferences or even remembering what you set weeks, months, or years ago.

Maybe you are looking for

  • Question about the Canon 8400F and scanning large photo albums

    Hi, Besides scanning negatives, slides, and individual photos, I will be visiting one of my relatives who is the "keeper" of some big family photo albums. If I recall correctly, the albums are pretty large and there are quite a few pictures on each p

  • How can someone send a message and it shows up from my number

    Please someone help me!!! I am getting messages from someone, I reply, but there is also someone else that replies and it shows from my phone number. it is like i am in the middle of someone elses conversation.. what is going on how can i fix it?

  • Can't import into Vista

    Hi! I have had a problem with iTunes for three months now. Argh! I am having trouble importing cds and having them actually work in my library. When the songs are done "importing" the end time is listed as 789:00:00 or something like that. (They won'

  • Dismantilng of Assembly--- New scenario

    Dear friendsI have an issue. Earlier I used to procure material called x which is just assembly of  just nut and bolt ( eg). and I have separate material code for bolt as well as nut. I used to procure it no of  x. But now we want to separate these t

  • Steps to create varients

    Hi Please Can anybody provide steps to create the varients for reports. Thanks in advance KP