Applet with Image not working in Browser, works fine in Appletviewer

Hi,
I encountered a problem , running my Applet in a browser. (IE and Firefox, ame problem).
When I use an ImageIcon, it doesnot work. in a browser.(When I remove the icon, it's oke)
In Appletviewer it works fine. In the browser I first got a security-exception.
I dealed with that by signing the jar (with the test certificate).
Now the browser's java console is not showin any faults, but the applet is showing no picture at all.
Only the text of the label is shown.
Can someone help me?
I downgraded the class to a very simple form, shown underneath. This runs fine in Appletviewer, but not in a Browser.
Best Regards
Remco

I have recently had the same problem, after lots of searching, I found that only Java 1.1 is supported by browsers, leaving out everything else including swing. So if you cant play the applet through your browser you need to download the appropriate patch i think about 5mbs.
You should find one at java.sun.com/getjava/download.html
Mine worked fine afterwards

Similar Messages

  • Q:Lists with images not working for me

    Gang,
    I am tryingto create a main page with a anumber of images pointing to different URLs. The main page is basically a list with images tied to it, pretty straightforward.
    However, I can't get the images to be displayed at all. Check out the test app here:
    http://apex.oracle.com/pls/otn/f?p=39193 (login: demo/demodemo)
    The workspace name is ANDYTEST.
    The images are loaded and are not associated to any application. If I check the source of the page I get the following:
    img src="/i/themes/generic_list.gif" width="128" height="128"
    And the width and height part is something that I have added to the attribute of the list entry.
    What am I doing wrong, andy ideas is excellent!
    Cheers,
    Andy

    Hello,
    The list template has a generic image so when the end developer (you) first implements a dropdown list you don't see a broken image.
    What you need to do is edit the List templat and take the image tag that looks like this
    <img src="#IMAGE_PREFIX#themes/generic_list.gif" #IMAGE_ATTR# />and make it this
    <img src="#IMAGE#" #IMAGE_ATTR# />I fixed up your example and you can see the images now.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

  • Image not showing in browser - need help urgently

    hi , I'm new to Javafx I'm trying to create display an image in a web browser , not thing complex , this is my code :
    package javafxapplication1;
    import javafx.stage.Stage;
    import javafx.scene.Scene;
    import javafx.scene.image.ImageView;
    import javafx.scene.image.Image;
    Stage {
    title: "Application title"
    scene: Scene {
    width: 800
    height: 800
    content: [ImageView { fitHeight:100 , fitWidth:100 image: Image {   url:"http://braddominy.com/media/images/applescript_dragdrop_icon.png"  ,        preserveRatio:false , backgroundLoading:true} ,x:100 , y:100 } ]
    when I run that example in standard Mode it work properly and the image is displayed , however when i run the example in a browser i get a blank page with a header "JavaFXApplication1"
    i tried to google the problem but came out with no results
    need you help , thanks in advance .
    Edited by: user9377818 on Nov 30, 2010 3:59 AM

    Is the image URL pointing to the same domain as the applet is downloaded from? If not, you will need to sign it. There is a security feature that prevents unsigned applets from downloading material from websites other than the one it is downloaded from to prevent a trojan applet from using your computer to launch a denial of service attack while you run it.

  • Background image not cached in browser

    Hi,
    Using JDeveloper 11g R1.
    We have a template, with a PanelGroupLayout component with a background image, like follows:
    <af:panelGroupLayout layout="horizontal"
    inlineStyle="width:100%; height:2px; background-image:url(&quot;images/separacioRalles.jpg&quot;); background-repeat:repeat-x;"
    id="pt_pgl5">
    In runtime, the request made by the browser includes and _adf.ctrl-state=xxxxxx parameter, which I supose causes the browser not checking the cache.
    image/jpeg     http://127.0.0.1:7101/ViewController-context-root/faces/images/separacioRalles.jpg?_adf.ctrl-state=1bn1yq032y_79
    Is there any way to avoid this _adf.ctrl-state? or another way to set the desired background?
    Thanks,
    Roger

    Hi Frank,
    Not working fine at all.
    I tried as you said:
    <af:panelGroupLayout layout="horizontal"
    inlineStyle="width:100%; height:2px; background-repeat:repeat-x; background-image:url(&quot;/images/separacioRalles.jpg&quot;);"
    id="pt_pgl5">
    and this is the request received on the server:
    127.0.0.1 - weblogic [28/ago/2009:10:39:58 +0200] "GET /images/separacioRalles.jpg HTTP/1.1" 404 1214
    Comparing with an af:image component:
    <af:image shortDesc="asdf"
    source="/images/help.gif" id="pt_i1"/>
    the request received on the server:
    127.0.0.1 - weblogic [28/ago/2009:10:39:58 +0200] "GET /ViewController-context-root/images/help.gif HTTP/1.1" 304 0
    If I put the contextroot in the background-image:url (background-image:url(&quot;/ViewController-context-root/images/separacioRalles.jpg&quot;), it works fine.
    127.0.0.1 - weblogic [28/ago/2009:10:44:28 +0200] "GET /ViewController-context-root/images/separacioRalles.jpg HTTP/1.1" 304 0
    So seems that the background image url is not built in the same way as using af:image component.
    Roger B

  • How to make an applet with curved edges in the browser

    Hi all,
    I m doing an applet application in which i want to show an image inside a player in the website. The edges of the player is designed in curved shape. So i too wanted to do an applet with curved edges. Otherwise my applet and the images are coming out of the player... do any body have come across such a problem. please give me some suggestions. Awaiting for your suggestions and solutions. If u don't understand what i m trying to say let me know..
    Thanks...

    I tried to get the screen height -1 and subtract from
    all the ys in my applet but it doesnt work all the
    time. I am drawing shapes and stuff with an algorithm
    I wrote for class.
    is there a way to get origin(0,0) to the lower left
    screen easily.
    thanksThe only way I can think of would be write a method to convert a "normal" y coord to an applet y coord. That would probably end up being a huge pain in the ass, since you would have to pass all y coords through it before using them, so I suggest you just get used to y being upside down.

  • Help with image placement in new browser window.

    I need help trying to position images that are being opened
    in a new browser window. I have created a photo gallery with
    thumbnails that are links to the larger image. Ive used the
    behaviors panel to open the new image in a new browser window but
    the image is always shown at the top left margins of the new
    window. Is there a way to 1. center the image in the new window, 2.
    change the background color of the new window that opens.
    Any help would be appreciated.
    Stu

    If, as I read it, you are simply opening the image, it will
    always be upper
    left and cannot be changed. IF you wnat to position it, you
    will need to
    create a new html page and position your image on that page,
    then call the
    page, not the image from your thumbnail link.
    In Dreamweaver in the command menu try the "Create Web Photo
    Album" command.
    It will create all of your pages, links and thumbnails for
    you. (requires
    Fireworks)
    Michael Hager
    www.cmhager.com
    "Stu127" <[email protected]> wrote in
    message
    news:eo70n5$qo5$[email protected]..
    >I need help trying to position images that are being
    opened in a new
    >browser
    > window. I have created a photo gallery with thumbnails
    that are links to
    > the
    > larger image. Ive used the behaviors panel to open the
    new image in a new
    > browser window but the image is always shown at the top
    left margins of
    > the new
    > window. Is there a way to 1. center the image in the new
    window, 2.
    > change the
    > background color of the new window that opens.
    >
    > Any help would be appreciated.
    > Stu
    >

  • Problem accessing applet with images

    I created a JApplet with images and icons in it. (The images are on my C drive). When I add the applet to an html page, and run it, the applet isn't loaded, but I get an IO error saying that I don't have security permission to access the images. Is there someway to switch of this security, or to put the images in a jar file and access the images from the jar file?? Thank you for your help!!

    By default applets can't read files off the hard drive.
    The easiest way to handle this is to put the images and other resources (such as properties files) in the same jar file as the classes, and then use Class.getResource or Class.getResourceAsStream to load them.

  • Applet not working in browser, works with appletviewer

    Hi,
    I'm trying to use an Applet program from the tutorials which keeps on displaying time in the HTML page:
    import java.awt.Graphics;
    import java.util.*;
    import java.text.DateFormat;
    import java.applet.Applet;
    public class home_page extends Applet implements Runnable {
        private Thread clockThread = null;
        public void init()
        public void start() {
            if (clockThread == null) {
                clockThread = new Thread(this, "Clock");
                clockThread.start();
        public void run() {
            Thread myThread = Thread.currentThread();
            while (clockThread == myThread) {
                repaint();
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException e){
                // the VM doesn't want us to sleep anymore,
                // so get back to work
        public void paint(Graphics g) {
            // get the time and convert it to a date
            Calendar cal = Calendar.getInstance();
            Date date = cal.getTime();
            // format it and display it
            DateFormat dateFormatter = DateFormat.getTimeInstance();
            g.drawString(dateFormatter.format(date), 5, 20);
        // overrides Applet's stop method, not Thread's
        public void stop() {
            clockThread = null;
    }When i use this program in the browser, i cannot see the clock but i'm able to see only a gray box. I'm using the applet tag within the HTML page.
    I can see the same compiled applet running successfully with appletviewer program.
    Please help me out of this predicament.
    -Manish

    I have recently had the same problem, after lots of searching, I found that only Java 1.1 is supported by browsers, leaving out everything else including swing. So if you cant play the applet through your browser you need to download the appropriate patch i think about 5mbs.
    You should find one at java.sun.com/getjava/download.html
    Mine worked fine afterwards

  • Why are my images not showing up?  Worked fine before yesterday...

    First, Happy Thanksgiving!
    I use iWeb for my photography business (www.rosiejohnsonphotogaphy.com). All has worked fine until yesterday. Now the images on my linked pages are not showing up. They are imported from iPhoto. Now one image is at the top (it is not imported from iPhoto) and at the bottom of the page is this "comments widget". I swear that I did nothing to my website yesterday - didn't even have iWeb open.
    Any ideas why this is happening??
    Thank you in advance!
    For clarity, here is the actual web address:
    URL: web.mac.com/rosie_johnson
    Message edited by RosiePosie
    Message was edited by: RosiePosie

    Wyodor,
    Thank you for taking a gander. I mistyped: www.rosiejohnsonphotography.com. Must have not had enough coffee at that point....
    So I checked my website from our other computer (not the one I use to update it) and all images loaded and looked fine. I then tried it from this computer (the only one used to update the website) and no pictures! Why is this?! I think it has something to do with this "comment widgets" statement at the bottom of each web page and the RSS box at the end of the web address bar. Any ideas how to fix this and get it back to where it was working would be appreciated!
    Thank you.

  • Imac 24" late 2007 with image persistence -- any fixes that worked?

    So there seem to be quite a few people with screen burn-in/image persistence on their imacs. I am one and I have tried Apple's solution as documented in:
    http://support.apple.com/kb/HT2807?viewlocale=en_US
    I've tried the white background for a few nights, no go. I also always had screen sleep set to 10 minutes.
    The image persistence I get look like left over text/window borders and smudges much like these:
    http://www.flickr.com/photos/paulbeattie/3672732489/in/set-72157620740779954/
    I have also tried jscreenfix and LCDscruber on various patterns for a few days now and I can't get rid of these artifacts.
    I suspect heat may be part of the issue. If I leave the imac off overnight and turn it on in the morning, my screen is fine. Wait a bit for it to warm up and the image persistence is back, however, turning up the fans failed to resolve the issue. Room temp is not bad -- about 26c. I've also tried cleaning out dust, but that didn't change anything.
    Has anyone with this problem actually gotten it fixed? What worked?
    Message was edited by: taii: Just to add, the location is just about dead center and spreads out roughly 4 inches in any direction. This puts it around the hard disk. The hard disk temp is 58c. The CPU and GPU temps are at 49/63c. The power supply is at 78c. This seems a bit high? The powersupply is in the upper left corner though and there is no image persistence in that area.

    Hello
    I don't have any exact figures as how much the temps went up as i didn't monitor it that closely before, as everyone who owns a iMac knows they can get quite hot.
    Last night when i checked the temp on the GPU was 78 degrees celcius and i belive that thats a good 8-10 degrees more that it normally was with Leopard.
    If i try and hold my hand behind the screen to the left where i believe the power unit is located it gets to hot for me to keep my hand there for more than a few seconds at a time.
    I don't have the other numbers available right now but i can post them tonight when i get home.
    I also had the problem before Snow Leopard but not as bad as with Snow Leopard. When i was using Leopard it normally took quite a long time for the problems to occur. I almost only got them if i wasn't using the computer and the screensaver or power saver for some reason failed to start, it was also quite easily fixed by just activating the screensaver or powersaver for a while.
    My conclusion is as follows:
    1. The iMacs has probably always had persistance problems.
    2. The iMacs gets quite hot
    3. After Snow Leopard the Imacs gets even hotter and this affects the percistance problems so that they grow worse
    All this accordign to me is clearly related to the hardware itself, i.e poor cooling, poor quality components and so on, nothing points to this being a user or usage problem and i therefor think that apple should address it accordingly.
    I'm in Sweden and my nearest Apple Store is quite far away and getting hold of someone at apple in sweden to discuss this matter with is easier said than done.

  • Images not loading right or working after that.

    Im making a short flash for fun, but I am having a hell of a
    problem with CS3. Seriously this is the third time I have lost my
    recent saved work to what ever the hell this bug or error is:
    <img src="
    http://img183.imageshack.us/img183/2570/18847920pg1.jpg"
    The character on the right was totally complete, its now
    messed up, only the face is where I left it off. The thing on the
    white screen, THERE USE TO BE ANOTHER CHARACTER THERE! All that is
    left is her arms that were behind her head fixing her hair. The
    Character to the Extreme left, Its no longer there. Its so blank I
    didnt even bother showing the spot.
    I am using CS3, but damn this is has been happening for
    awhile, and I found that my saved copies I backup on my USB were
    surviving fine, but that one was my latest work from my USB and its
    corrupted. Im not so much pissed about the lost work as I do still
    have a previous version, though several hours of work was lost.
    What pisses me off so utterly is the fact THIS IS THE 6TH OR 7TH
    time this has happened to my most recent work. I have had to redraw
    those characters several times already, and it did it again. What
    is the problem? Does anyone know why this is happening. Its
    absolutely driving me mad.
    Please help.

    to be sure, that's not an actionscript problem. you might get
    more assistance in the general discussion forum, especially if you
    use an appropriate subject line.

  • Dreamweaver CS5 with PHP, not getting it to work with virtual Host

    I have not got far with the book so far.  I am still on the second chapter where you set the Virtual Host but after setting up the Dreamweaver site definition and doing the test.  I get the error that page cannot be found.
    I ask if I can mail the text file of the http.conf and the httpd-vhosts.conf to anyone to see if I screwed up somewhere .  I am running on Windows 7 with the WAMP setup.

    Mr. Powers,
    I used your included file httpd-vhosts.conf.  And it did something since now I get a new set of errors.
    ( ! ) Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
    ( ! ) Fatal error: Unknown: Failed opening required  'C:/vhosts/phpcs5/lesson02/site_check.php'  (include_path='.;C:\php\pear') in Unknown on line 0
    But I checked the properties of the folders and unchecked the 'read only' permission but still gets checked again.  I am using Windows 7 64-bit.
    I checked on the web nobody says any solutions about it, they only imply that is a permissions issue.
    I apologize, I found out the chapter files were encrypted... thanks

  • Image not displaying in firefox, working in Chrome & IE (CSS)

    This is a long shot, and a cross post from stackoverflow, i'm hoping someone can help
    I'm trying to position a temporary 'beta' ribbon image positioned in the top left of a wordpress based site.
    The following code functions as intended in Chrome and IE. In Firefox, nothing is appearing:
    #page-wrapper:before
    width: 50px;
    content: " ";
    background: url(../../wp-content/uploads/2013/09/betaribbon2.png) no-repeat;
    position: absolute;
    height: 50px;
    pointer-events: none;
    Can anyone shed light on what I'm doing wrong?
    Thanks,

    the above fragment is correct according to me but just make sure you have got your images enabled on your firefox. please make sure that the path for the image is correct. if the problem continue please be free co contact. :-)

  • Firefox not connecting other browser working fine

    I have tried all possible troubleshooting method describe in your site but unable to connect internet. I am using Norton Internet Security V 20.1.2. Please help me.

    hello, normally such issues are caused by a firewall/security software which doesn't recognize & therefore blocks new firefox versions: [[Fix problems connecting to websites after updating Firefox]]

  • Images not resolving in browser

    Just downloaded Dreamweaver CC 2014 and my inserted images just grey out when I preview in browser or when I upload to server and look and website. I have tried to reduce images very low and tried several methods of inserting the image using file, and drop, and point. Can not figure out why it is not working. I am using a MacBook Pro.
    Here is the html code
    :<img src="/Images/images/RCR-binder-picture_01.jpg" width="326" height="216" alt=""/>
    I have tried Safari (get a box outline with a small blue box in the center with a question mark.
    I have tried Firefox  and I get no image at all.
    I have tried Chrome and I get a white box with a small paper icon in the middle.
    I just a beginner, so any help will be appreciated. thanks

    Hi Buzz57,
    Try the steps in the following article:
    Dreamweaver Help | Troubleshooting links
    If it still does not work, try uploading your images to the web (i.e. any image hosting providers like Picasa, or a cloud space); and then define the web URL as the image source in the Dreamweaver HTML code.
    For example: <img src="http://picbook.in/wp-content/uploads/2014/07/google_images_-_photos_videos.jpg" width="230" height="215" alt=""/>
    Regards,
    Sonam

Maybe you are looking for

  • IPhone not available in iTunes after upgrade to 10.6 and IOS 5.1

    I upgraded iTunes to 10.6 on WinXP and IOS to 5.1 on my iPhone 4. Now the iPhone does not appear in iTunes when I plug it in. The phone does appear in Explorer as an external HDD. Is WinXP no longer supported?

  • Deleting photos from main library while in Smart Album.

    anyone know of a key sequence to delete a photo from the library when viewing the photo in a smart album? I have over 1700 photos. Sometimes I want to delete all photos within a smart album but you can not do that by just selecting delete; that only

  • MB Pro 13 inch; Parallels/VirtualBox freezes system

    Hello, When I use Parallels or VirtualBox my system freezes from time to time... Not immediately. But it has had some freezes already, when running either Parallels Desktop 6 or VirtualBox with Windows 7. I just bought it one or two weeks ago... Here

  • Having trouble viewing the print preview of sapscript

    Hi experts, I am currently developing a driver program that calls 13 different sapscript forms (which are also customized - has n existing standards). so basically, the whole program and the forms are all from scratch. I've already executed the call

  • EXIT or RETURN in Stored Procedures

    Anyone, Should I use EXIT/RETURN/GOTO when in a stored procedure and I am trying to deal with EXCEPTION handling but need to exit out of stored proc handing back a value in an OUT variable to the calling procedure? I have been working with all three