Why is a simple Java applet not diplaying properly in its window bounds?

Hello, I am having difficulty displaying applets on the Mac. Here is one of the simplest applets copied exactly from the Sun java website. This applet runs fine on PCs, unfortunately, on my sister's Mac, it does not display properly. It looks like the browser reserves the proper cutout window for the applet. But then the applet does not display in that window, instead, it paints itself shifted away from that window, even covering browser's borders and toolbars.
She is using Leopard, the Mac was bought new last year, and the browser is Firefox. She is using java 1.4, I don't want to switch that, because that is what is by default running there. Most internet users would not know to switch their java version if an applet does not show properly. So it has to show properly for any java version that may be default on a Mac.
Here is the SSCCE:
file HelloWorld.java:
import javax.swing.JApplet;
import java.awt.Graphics;
public class HelloWorld extends JApplet {
public void paint(Graphics g) {
g.drawRect(0, 0,
getSize().width - 1,
getSize().height - 1);
g.drawString("Hello world!", 5, 15);
file HelloWorld.html:
<APPLET CODE=HelloWorld.class WIDTH=850 HEIGHT=730 >
</APPLET>

You'll most likely get a cogent response posting to the Unix forum under OS X Technologies.

Similar Messages

  • Java applet not working savevid keepvid

    Hi all,
    I'm sure I'm not the only one who has been confounded by Java applets not working in certain download web services; in my case, keepvid.com and savevid.com to download copies of youtube videos.  It has been a huge headache and even debilitating in my case.  I teach film and video to middle schoolers, and we often use youtube as a resource for our class projects. 
    I found a solution today, I think, and wanted to share it:
    I installed the browser called "Torch" and it seems to work fine, so far.

    thanx 4 replying
    using the browser to view Applet is not recomended that is because if u change the the source-code and recompile the applet then run it using the broswer it will run the old-version
    Also i've found the solution here
    http://www.cs.utah.edu/classes/cs1021/notes/lecture03/eclipse_help.html

  • I have download firefox 4 beta but now in some websites can not open. applet not load properly

    I just download fire 4 beta on my windows vista. Can not open in some websites. the message applet not load properly please reload the page

    Your More system details list doesn't show the Java plugin as installed.
    Update the [[Java]] plugin to the latest version.
    *http://kb.mozillazine.org/Java
    *http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)

  • Why are previews in Bridge blurry (not rendering properly)?

    Why are previews in Bridge blurry (not rendering properly)?
    I found a simple answer to this question: control click on the thumbnail and select "purge cache for selection"
    After years of intermittently having this problem, this solved the issue. I had just finished a fresh install of main sys hd (new hd) and first time opening bridge encountered this issue again after not having the problem for a few years.
    Hope this helps others.  

    Why are previews in Bridge blurry (not rendering properly)?
    I found a simple answer to this question: control click on the thumbnail and select "purge cache for selection"
    After years of intermittently having this problem, this solved the issue. I had just finished a fresh install of main sys hd (new hd) and first time opening bridge encountered this issue again after not having the problem for a few years.
    Hope this helps others.  

  • HT1338 i think my java is not working properly what do i do

    i think my java is not working properly what do i do

    Java 7 updated  for 10.7-10.8
    Released Feb 1, 2013,  fixes 50+ security flaws
    http://www.esecurityplanet.com/patches/oracle-responds-to-java-security-flaws-wi th-50-fixes.html
    Download and install
    https://www.java.com/en/download/faq/java_mac.xml
    For Java versions 6 and below OS X 10.5-10.6 machines
    Apple supplies their own version of Java. For Mac OS X 10.6 and below, use the Software Update feature available under the Apple menu to check that you have the most up-to-date version of Java 6 for your Mac.
    https://www.java.com/en/download/faq/java_6.xml
    Java SE 6 End of Public Updates
    After February 2013, Oracle will no longer post updates of Java SE 6 to its public download sites. We highly recommend downloading and installing Java 7.
    If your considering upgrading OS X from 10.6.8 to 10.8 via AppStore to run Java 7
    Be forewarned no PowerPC based programs or driver software will run any longer.
    Check here BEFORE you upgrade OS X!
    http://roaringapps.com/apps:table
    Alternatives if you must run Java 7
    If Apple disabled Java 6 in 10.6, and you can't upgrade OS X to 10.8, then your pretty much done with Java in OS X because Oracle won't issue updates for Java 6 anymore.
    However you can install Windows 7 and continue to use Java 7+ there until support for Windows 7 ends in 2020.
    Windows in BootCamp or Virtual Machine?
    If your on 10.6, I very highly recommend the free Virtualbox for the virtual machine software as it gets updates, VMFusion and Parallels have moved on with only 10.7+

  • Simple pass is not woking properly

    simple pass is not woking properly I am unable to sign into mails. when i click the web card a box appiars and it says set ur default browser my default browser is IE9   Ineed updates to solve this problem

    Thank you for visiting the HP Support Forums. Just a reminder that this is a peer-to-peer community of HP customers, and not a venue to contact HP directly. Most of the users here are consumers like yourself who are offering solutions because they like to help others, and any HP employees you see are here on their own capacity and not representing the company.
    If you have additional or direct feedback for HP about their products or services, or questions about repair, you can use the link below for contact information.
    http://www8.hp.com/us/en/contact-hp/ww-contact-us.html
    If you have other questions and concerns about using the forum, please feel free to send me a private message.
    OrnahP
    HP Support Forums Moderator
     Clicking the "Kudos Star" to the left is a great way to say thanks!
     When your problem has been solved, accept the solution by clicking "Accept as Solution" to help other members in the future!
    Rules of Participation

  • The latest version of iTunes did not install properly on my Windows 7 PC.  I am getting the following error message: "Service 'Apple Mobile Device' failed to start.  Verify that you have sufficient privileges to start system services." Can anyone help?

    The latest version of iTunes did not install properly on my Windows 7-64bit PC.  I am getting the following error message: "Service 'Apple Mobile Device' failed to start.  Verify that you have sufficient privileges to start system services."
    I have tried the following troubleshooting steps without success:
    Restart PC
    Uninstall iTunes and attempt to reinstall
    Verify that I am signed in as an administrator
    Download and save iTunes64Setup file, right-click, and run as Administrator
    Disable Norton antivirus software
    Any suggestions would be greatly appreciated!

    Hi Iss9243,
    Welcome to the Support Communities!
    You've already tried some great troubleshooting steps, but the article below gives you quite a few more for this issue.  Hope it helps ....
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    - Judy

  • My Ipod 5th gen. has been detected by itunes, but could not identified properly, and its been charging for a week and still hasn't come to a full charged. What should I do?

    My Ipod 5th gen. has been detected by itunes, but could not identified properly, and its been charging for a week and still hasn't come to a full charged. What should I do?

    but could not identified properly
    Please clairify.
    charging for a week and still hasn't come to a full charged
    Sounds like you need a new battery.  Take the iPod Nano to an Apple store or an AASP.  Whichever is more convenient for you.
    iPod Repair Pricing

  • Java Applets not running in Any browser

    Hi,
    I have JRE / JSE (1.6.17) installed on a windows 7, 32 bit Intel Machine.
    I am able to do all the programming and stuff (in Java), but when i try to open a web page with a Java Applet, it just does not show.
    The page gives a message saying that an additional plugin is required.
    I tried, Google Chrome, Firefox, Internet Explorer...all have the same problem.
    The environment variables are correctly set.
    This is something completely new for me, so would appreciate some help

    Actually i think its more related to JRE.
    I was actually referring to general applet loading.
    I cannot open any applet in any browser.

  • Java Applets not working using IE 6 after uninstalling software

    I uninstalled some software on WinXP using Add/Remove, however the software still left remnants on my system. I tried to removing all the entries in the registry with RegEdit....I will confess I am a rookie with that tool, however now IE 6 will not launch Java Applets on the web sites I visit.
    I also have Mozilla Firefox 8 installed and Java Applets work fine using that browser. Do I have to reinstall WinXP to correct IE 6, or is there an easier alternative?
    Thanks for any suggestions
    Gerry

    Please check out in the IE Explorer Tools--> Internet Options --> in this Advanced tab this will display you with the set of options and chceck boxes...
    in that please check out that whether the Java(SUN) --- (USe Java....<applet> Requires reStart...
    is existing or not if existing please check it and restart the system.
    if it is not existing in your broser then you have to install the JRE in the system for your Applet to work..
    That can be downloaded form...
    http://www.java.com/en/download/manual.jsp
    Here go for windows....
    All The Best..

  • Java Applets not working with Firefox 5 properly

    Java Applets work sometime. But after sometime the Java icon at the bottom (near date & time) disappears. After this no matter what I do it does not work. Java Applets are used in this case to draw charts. The same charts come out properly in Internet Explorer. But I prefer using Firefox for its speed. What is the reason for this problem ?

    -> Tap ALT key or press F10 to show the Menu Bar
    -> go to Help Menu -> select "Restart with Add-ons Disabled"
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Toolbars -> unselect All Unwanted toolbars
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Privacy -> History section -> ''Firefox will: '''select "Remember History"'''''
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • Java Applet not loading in Safari

    Hi folks.
    I just noticed a problem with Safari on my Macbook Pro. I'm trying to use Keepvid to download videos from Youtube but it no longer works.
    I load then link into Keepvid and then get the message "Java Applet Loading..". Except that it remains stuck like this forever and it does not work at all.
    How to fix this please?

    I have exactly the same problem.
    (my config is
    windows Xp Profesional
    jre 1.4.1 03
    ie6)
    I'm also using zonealarm as a firewall.
    any Ideas?

  • Java Applet not displaying in Internet Explorer Options

    For some reason my Internet Explorer browser is refusing to use Java. I've installed IE 8 and reinstalled the Java application, yet when I go to check the IE Options, the Java Applet does not even display as a selectable option. It works just fine in Firefox, which is what baffles me. As a direct result of this, my Java Desktop applications aren't working properly either. I have one that creates custom playing cards and I can change the backgrounds and view all my cards, but it will not save the information, an error of which I believe to be related to how Java isn't working with IE 8.
    Any ideas? I've made sure that my virus protection is up to date. I'm at my wits end.

    I'm having this exact or a very similar issue on Windows 7 Home Premium (64 bit) laptop with JRE 1.6.0_17
    smccoy wrote:
    Java doesn't work with my Internet Explorer, but it does work with Firefox. After deleting "temporary Internet Files" and restarting Internet Explorer 8.0.7600.16385 Java applets work on the browser.
    >
    Java does not appear in my Internet Options advanced tab.This is the main problem I have, Java is nowhere to be seen under Internet Options
    >
    And, in the Java control panel advanced default browser for Java, the IE is checked but greyed out. Same thing here
    Only thing I can think of is that I've installed both the 32 bit and 64 bit JRE on this machine so I can have Java on both IE 32 bit an IE 64 bit.
    Mght that come into play here?

  • Java applet not loading in EBS R12

    Dear Contributors, I am trying to open forms w.r.t EBS R12 in my personal system and it was working fine all these days. Today when I tried accessing the forms JAVA is not initializing the applet. Below is the console information for your reference. It just stops after 'Downloading' message mentioned below. Please help fix this issue. Thanks! Java Plug-in 1.6.0_17 Using JRE version 1.6.0_17-b04 Java HotSpot(TM) Client VM User home directory = C:\Documents and Settings\Administrator ---------------------------------------------------- c:  clear console window f:  finalize objects on finalization queue g:  garbage collect h:  display this help message l:  dump classloader list m:  print memory usage o:  trigger logging q:  hide console r:  reload policy configuration s:  dump system and deployment properties t:  dump thread list v:  dump thread stack x:  clear classloader cache 0-5: set trace level to ---------------------------------------------------- security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio. security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp security: property package.definition value null security: property package.definition new value com.sun.javaws security: property package.definition value com.sun.javaws security: property package.definition new value com.sun.javaws,com.sun.deploy security: property package.definition value com.sun.javaws,com.sun.deploy security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@edc3a2 network: Connecting http://oracle.windomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndforms.jar with proxy=DIRECT network: Connecting http://oracle.windomain.com:8000/ with proxy=DIRECT network: Connecting http://oracle.windomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndforms.jar with cookie "oracle.uix=0^^GMT-5:00^p; VIS=4pEoF5FgAu4X0qzLwK9z4I9j:S" network: Downloading resource: http://oracle.windomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndforms.jar Content-Length: 640,093 Content-Encoding: null security: Blacklist revocation check is enabled security: The jar file isnt on a blacklist network: Connecting http://oracle.windomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar with proxy=DIRECT network: Connecting http://oracle.windomain.com:8000/ with proxy=DIRECT network: Connecting http://oracle.windomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar with cookie "oracle.uix=0^^GMT-5:00^p; VIS=4pEoF5FgAu4X0qzLwK9z4I9j:S" network: Downloading resource: http://oracle.windomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndformsi18n.jar Content-Length: 99,528 Content-Encoding: null security: The jar file isnt on a blacklist network: Connecting http://oracle.windomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar with proxy=DIRECT network: Connecting http://oracle.windomain.com:8000/ with proxy=DIRECT network: Connecting http://oracle.windomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar with cookie "oracle.uix=0^^GMT-5:00^p; VIS=4pEoF5FgAu4X0qzLwK9z4I9j:S" network: Downloading resource: http://oracle.windomain.com:8000/OA_JAVA/oracle/apps/fnd/jar/fndewt.jar Content-Length: 2,240,354 Content-Encoding: null

    did you restart the forms server with the command.
    $ADMIN_SCRIPTS_HOME/adopmnctl.sh stopall
    $ADMIN_SCRIPTS_HOME/adopmnctl.sh startall

  • Java Applet Not Loading In IE6 on XP

    Can anyone assist I have a user who can not load a Java Applet on one of our web pages, I really need her to access this as it is important to her work. I have tried all the latest Java Versions to no avail. I have also tried adding SP1a to Windows XP to no avail. I am at a loss and it is stopping the user from working, can anyone help? Web site is Http:\\www.daimlerchryslerservices.co.uk/insurance
    Below is a copy of the messages from the Java Console to tell you what is happening.
    Thanks in Advance
    Java(TM) Plug-in: Version 1.4.1_01
    Using JRE version 1.4.1_01 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\schweizerc
    Proxy Configuration: Automatic Proxy Configuration
    URL: http://wpad.corpdcs.net:80/wpad.dat
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.io.IOException: Server returned HTTP response code: 407 for URL: http://www.daimlerchryslerservices.co.uk/insurance/TDAgent.jar
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at sun.plugin.net.protocol.http.HttpUtils.followRedirects(Unknown Source)
    at sun.plugin.cache.CachedJarLoader.download(Unknown Source)
    at sun.plugin.cache.CachedJarLoader.load(Unknown Source)
    at sun.plugin.cache.JarCache.get(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
    at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
    at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
    at sun.misc.URLClassPath$3.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.misc.URLClassPath.getLoader(Unknown Source)
    at sun.misc.URLClassPath.getLoader(Unknown Source)
    at sun.misc.URLClassPath.getResource(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    load: class ft3td/tdagent/TDAgentStub.class not found.
    java.lang.ClassNotFoundException: ft3td.tdagent.TDAgentStub.class
    at sun.applet.AppletClassLoader.findClass(Unknown Source)
    at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.applet.AppletClassLoader.loadCode(Unknown Source)
    at sun.applet.AppletPanel.createApplet(Unknown Source)
    at sun.plugin.AppletViewer.createApplet(Unknown Source)
    at sun.applet.AppletPanel.runLoader(Unknown Source)
    at sun.applet.AppletPanel.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
    at sun.applet.AppletClassLoader.getBytes(Unknown Source)
    at sun.applet.AppletClassLoader.access$100(Unknown Source)
    at sun.applet.AppletClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    ... 11 more

    I have exactly the same problem.
    (my config is
    windows Xp Profesional
    jre 1.4.1 03
    ie6)
    I'm also using zonealarm as a firewall.
    any Ideas?

Maybe you are looking for

  • Customizing the code inspector with check for two executable statements in same line

    Hi Everyone, I have a reuirement to customize the code inspector.I need to create a check 'Two executable statements should not be in the same line'. While doing so i am facing one problem as in internal table it is capturing the report as word by wo

  • ITunes 10.6 released, lists Match improvements

    What's new in iTunes 10.6 iTunes 10.6 adds the ability to play 1080p HD movies and TV shows from the iTunes Store. This release also includes many improvements for iTunes Match, including: • Improved song matching • Improved album artwork handling, d

  • Quick Organization?

    Good evening first of all... I want to organize my iTunes library. I have 2700+ songs. I'm wondering if there is a software that will do any of the following... •Make all words start with a capital •Add the album name to the song (by searching someho

  • How much longer before wireless ThinkPad keyboard?

    How much longer do we have to wait for a wireless ThinkPad keyboard? Current ThinkPad USB keyboard with TrackPoint is ridiculously priced, considering it's on a wire, while you can buy a very decent wireless keyboard from Logitech for half the price.

  • Shutting Down and Freezing

    << Post moved for better exposure >> Yes, I have been having this problem with a three-month old Nokia Lumia 822. About a month ago, my original phone began to freeze, which I resolved by turning it off then on again.  Then, it shut itself off a few