Applet doesn't die out

Hello all,
I've an applet that contains a button.
I open a JFrame on its click event.
However, the frame doesn't destroy even if i've closed the applet's browser window sometimes.
Could anybody tell why is this happening and how could i remove this?
Thank you

Are you trying to creat an independent GUI application from the applet, or maybe you want to use JInternalFrame, or JPanel inside the applet?
If you want an independent application, you'll have to specifically terminate it if you want it to go away when you close the applet.
If you need more help, post a small, compilable, and executable example, an explanation of what it's doing, and what you want it to do.
Surround code with code tags like this:
[code]
put your code here. . .
[/code]

Similar Messages

  • Applets have almost died out on the web

    Its so interesting that applets pioneered dynamism on the web and i just realized today that flash has completely killed applets.
    I suggest applets should have being given a different architecture than normal Desktop java...a kind of architecture that makes it kind of different from desktop java. maybe a different kind of interpreter...flash has action scripts and it is also interpreted...
    Well..just a view

    <sigh> No... it's not really that interesting at all.... In part cuz about once a month for the last 3 or 4 years someone comes along and posts this exact topic.
    Flash has not completely killed off applets. There's still plenty of things that you can do in applets that Flash cannot do. There are plenty of things that Flash makes a whole lot easier to do then applets.
    I would argue that technically, there is nothing that Flash can do that an applet couldn't be made to do. Not so the other way around. Not easily at this time, but an API could be written to allow Flash-like applets to be written easily. But why? You need Flash, use Flash. You need applets, use applets. While they may have some overlapping capabilities, they are not truly in the same space.
    There's a saying: Use the right tool for the job.

  • Getting JAR file for Applet doesn't work

    Hi,
    We have the following problem: we have some clients who want to use our applet. There are some clients that have problems with receiving the .jar file:
    When the applet tries to start we get a ClassNotFoundException: 'prestaties.class' not found. (the client wants to acces the class file directly from the server)
    If we check the .jar file, it exists on the client, but the file is empty.
    What could be the problem?
    - PRoxy or firewall blocks the jar file
    - applet doesn't have enough rights to write.
    Does anyone a solution, some workarounds or suggestions for this problem.
    Thanks!
    Luk

    Hi,
    Thanks for answering my question!
    Here is the extra information you asked.
    At server side everything is OK (the jar file is present and has all the class files).
    Where working with Weblogic server 4.51
    The clients run JRE 1.3.0-C
    I can't give you the applet code (confidential) but here is the html code:
    <OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" width="600" height="80" align="middle">
    <PARAM NAME="cache_archive" VALUE="prestaties.jar">
    <PARAM NAME="cache_option" VALUE="Plugin">
    <PARAM NAME="cache_version" VALUE="1.4.2.1">
    <PARAM NAME="code" VALUE="be.vdab.cvsesf.applet.prestaties.PrestatiesApplet">
         <PARAM NAME="codebase" VALUE="/lib">
         <PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
         <PARAM NAME="scriptable" VALUE="true">
         <PARAM NAME="windowId" VALUE="185498422412000">
         <PARAM NAME="cursusId" VALUE="23178">
         <PARAM NAME="opleiding" VALUE="boetseren">
         <PARAM NAME="organisator" VALUE="TESTOE Omschrijving">
         <PARAM NAME="locatie" VALUE="TESTDOSSIER HELKPDESK / 0">
         <PARAM NAME="instructeur" VALUE="TESTDOSSIER HELKPDESK / 0">
         <PARAM NAME="WebLogicSession" VALUE="1">
    <COMMENT>
    <EMBED type="application/x-java-applet;version=1.3" width="600" height="80" align="middle"code="be.vdab.cvsesf.applet.prestaties.PrestatiesApplet"codebase="/lib"pluginspage="cvsesf/plugin.jsp"cache_option="Plugin" cache_version="1.4.2.1" cache_archive="prestaties.jar" windowId = "185498422412000"cursusId = "23178"opleiding="boetseren" organisator="TESTOE Omschrijving" locatie="TESTDOSSIER HELKPDESK / 0" instructeur="TESTDOSSIER HELKPDESK / 0"WebLogicSession="1">
    <NOEMBED>
    </COMMENT>           
              <html>
                   <head>
                        <title>Java plugin download</title>
                        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
                        <link rel="stylesheet" href="../includes/vdabstyle.css">
                   </head>     
                   <body bgcolor="#FFFFFF">
                   <TABLE width="600" border="0" cellpadding="1" cellspacing="0">
                        <tr>
                             <td>               
                                  <h1 align="right"><b><font face="Verdana, Arial, Helvetica, sans-serif">Java plugin</font></b></h1>
                                  <P><B>Voor het invullen van prestaties en vergoedingen heeft u de JRE 1.3 Java Plugin nodig: deze staat op de CD-ROM die u normaal gezien van de VDAB gekregen heeft.<br><br>
                                  Ofwel kan u de plugin hier zelf downloaden (<U>opgelet:</U> bestand is 8 MB groot).<br><br>
                             U kan het VDAB callcenter contacteren om een CD-ROM aan te vragen of om problemen te melden. Het nummer vindt u onderaan het scherm.</B></p>
                             </td>
                        </TR>                    
                   </table>               
                   </body>
              </html>
         </NOEMBED>          
    </EMBED>
    </OBJECT>
    Hope this helps.
    Luk

  • Ever since I had my screen replaced, my laptop has slowly gone to ****. Half of my songs have been lost, webpages die out, shockwave crashes, and no I can't even sign into my laptop. Who can I contact to get this all fixed?

    Ever since I had my screen replaced, my laptop has slowly gone to ****. Half of my songs have been lost, webpages die out, shockwave crashes, and no I can't even sign into my laptop. Who can I contact to get this all fixed?

    How about the people who fixed the screen?

  • I put a windows xp cd in my mac book pro and rebooted the mac,mac doesn't start up any more and the cd doesn't come out,what can I do now?

    I put a windows xp cd in my macbook pro and rebooted the mac,mac doesn't come up any more and the cd doesn't come out,what can I do now?

    Hossein,
    As Guido said, you can  use BootCamp to partition the drive. If you want to install, or reinstall Windows. You would launch BootCamp and it will actually guide you through the installation, you will only need to decide how large a partition you want. I would use BootCamp, I would not use disk utility. When you have installed Windows and you want to boot into windows, when you start your MBP hold down the option key, this will give you trha option of booting Mac OSX or Windows.
    Joseph

  • The zoom in zoom out gesture doesn't work on my iPhone 5c. Like when opening an app it doesn't zoom out and opens.

    The zoom in zoom out gesture doesn't work on my iPhone 5c. Like when opening an app it doesn't zoom out and opens. It also doesn't zooms in while pressing the home button to return. The gesture is just like any other Android phone. Like while closing an app by pressing the home button the icons seem like zooming in and falling back to their respective places. This thing happens in my friends' iPhones but this thing doesn't happen on my iPhone 5C. Please help.. I am unable to find anything wrong with the settings either.
    Message was edited by: Prats20

    I have another query though. Is it possible to always logged into my Gtalk from iPhone? I am using an app called Gtalk Lite. But every time I double press the home button and swipe up the apps to close them from running in the background Gtalk lite logs me off. I have to log in to Gtalk lite again. I was looking for something like that happens on Android phones. You are always logged in even after you close them from running in the background. And also is it possible to log in to more than one gmail account on Gtalk in iPhone?

  • Applet doesn't takeup the new file until browser is started again

    Hi Friends
    I have made a applet which can record and also can play the .wav file.
    I am using java sound api.
    But when I run this applet and record the sound and then click a button to play it , it plays the older file. But after recording, the older file got replaced with the new file, then why it plays the older. It should now play the new file.
    But after closing the IE browser and starting it again plays the newer recorded fle. Refreshing applet doesn't work.
    I have checked this also on firefox browser, same is happening.
    I have also tried to solve this problem using threading, but could not succeed. In threading I made AudioClip object null and reassigned the value in run method of the thread.
    Please solve this problem.
    Thanks

    I've found that the render error is due to the applet being hidden/displayed via JavaScript. Now that I've played around with that, I find it a highly unrecommendable approach. Basically what's done is:
    <div id="foo">
    <applet id="myapplet" ...>
    </applet>
    </div>
    <script>
    document.getElementById('foo').style.visibility = 'hidden';
    document.getElementById('foo').style.visibility = 'visible';
    document.getElementById('myapplet').repaint();
    </script>
    The "repaint" call does call the repaint method in the applet, but the result is the sad picture that I've linked to.
    Anyone know a robust way to repaint an applet from JavaScript?

  • My computer sometimes doesn't send out my e-mails

    My MacBook sometimes doesn't send out my e-mails.  I need to send them directly from the server to be certain they go out.  Random recipients and random e-mails.

    Hi CamarilloJuls,
    Welcome to Apple Support Communities.
    It sounds like there is an intermittent issue sending emails from your Mac. The article linked below provides a lot of great information and tips that should resolve most issues related to sending email on a Mac.
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/TS3276
    I hope this helps.
    -Jason

  • RO doesn't come out of 'provisioning' state even though tasks are Completed

    I'm having an issue where I provision a user to a RO.
    Both System Validation and Create User (which are the only two tasks marked as Required for Completion') are ok.. and both are marked Completed but instead of the resource object changing to a 'Provisioned' state for the user.. it doesn't get out of 'Provisioning'.
    The user is created in the RO, I can login and everything.. all my db tables are populated the way they should be.
    This is an issue because I can't 'Disable' a RO that is in the 'Provisioning' state, even though the user has access to the RO.
    Anyone have an idea of what it could be?
    Thanks in advance,
    Tomic

    very simple my friend. Check your task to object status mapping of the create user task. It should be set as C as Provisioned.

  • Oil Paint Filter Doesn't Turn Out

    I'm using the oil paint filter and for some reason it doesn't turn out when I use it. It doesn't seem to be an issue for very very small sized images, if I make the photo smaller it will work just fine. However, for any regular sized images I get this result below. I just got a new computer, so i'm not sure what the issue could be? Thanks for your help, I appreciate it

    Noel Carboni wrote:
    Reminds me of some of my debugging during development of our plug-ins.
    Ah, I did save one of those images.
    -Noel

  • Applet doesn't stop

    Hi !
    I haven't write an Applet since... old times. Anyway, the following applet doesn't stop.
    PLEASE help me !
    Thank you,
    Alin
    import javax.swing.*;
    import java.awt.Graphics;
    public class countDown extends JApplet {
         private static final long serialVersionUID = 1L;
         int days = 23, hours = 23, mins = 23, secs = 23;
         boolean continueFlag = true;
         Thread currentThread;
         public void init() {
              try {
                   days = Integer.parseInt(getParameter("days"));
                   hours = Integer.parseInt(getParameter("hours"));
                   mins = Integer.parseInt(getParameter("mins"));
                   secs = Integer.parseInt(getParameter("secs"));
              } catch (NumberFormatException numberFormatExcept) {
                   numberFormatExcept.printStackTrace();
         public void stop() {
              continueFlag = false;          
         public void destroy() {
         public void start() {
              currentThread = Thread.currentThread();
         public void paint(Graphics g) {
              g.drawRect(0, 0, 600, 16);
              while (continueFlag) {
                   g.clearRect(0, 0, 600, 16);
                   g.drawString(days + " days " + hours + " hours " + mins
                             + " minutes " + secs + " seconds", 0, 15);
                   try {
                        if (continueFlag)
                             currentThread.sleep(1000);
                   } catch (InterruptedException interExcept) {
                        interExcept.printStackTrace();
                   secs--;
                   if (secs < 0) {
                        mins--;
                        secs = 59;
                   if (mins < 0) {
                        hours--;
                        mins = 59;
                   if (hours < 0) {
                        days--;
                        hours = 23;
    }

    That's because paint() doesn't stop, therefore you never get a chance to click the stop button. The paint() method should draw how the applet should look at one moment in time, and then return.
    If you want to have an animation or the like (multiple separate drawings separated in time), then a thread should update the information that the paint method uses to draw the applet (this information is known as "state"), and then call repaint().
    Also don't bother dealing with threads yourself. Use a java.util.Timer, which handles all that stuff for you.

  • Applet doesn't work with JRE1.4.1_01

    Hi,
    I have an applet embedded in a remote-server page. It can be loading from the server and running in the local computer with Jre1.3.1. After I uninstalled jre1.3.1 and installed JRE1.4.1_01. My applet doesn't run. Here is the message from Java Consol:
    java.lang.NullPointerException
         at sun.plugin.cache.CachedFileLoader.writeHeaders(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.createCacheFiles(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.access$200(Unknown Source)
         at sun.plugin.cache.CachedFileLoader$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.plugin.cache.Cache.privileged(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.download(Unknown Source)
         at sun.plugin.cache.CachedFileLoader.load(Unknown Source)
         at sun.plugin.cache.FileCache.get(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connectWithCache(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1197)
         at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:247)
         at sun.applet.AppletClassLoader.getBytes(AppletClassLoader.java:250)
         at sun.applet.AppletClassLoader.access$100(AppletClassLoader.java:42)
         at sun.applet.AppletClassLoader$1.run(AppletClassLoader.java:143)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:140)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:299)
         at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:114)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
         at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:501)
         at sun.applet.AppletPanel.createApplet(AppletPanel.java:566)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(AppletPanel.java:495)
         at sun.applet.AppletPanel.run(AppletPanel.java:292)
         at java.lang.Thread.run(Thread.java:536)
    I copy the my html file which has this applet built-in to my local computer. The webpage can be openned and the applet running fine even with jre1.4.1. Why it didn't run with Jre1.4.1 and it did run with jre 1.3.1 when loading remotely? Could someone tell me what the above messages mean? Is this a bug from Jre1.4.1_01?
    Thanks,
    Kunlun

    Hello
    i am facing the same problem. when i run my java applet using localhost.. it does not work and shows the same exceptions
    i download the JRE 1.4.1 by using following link
    http://java.sun.com/products/plugin/1.4.1/demos/plugin/applets/SpreadSheet/example1.html
    eventhen it is not working.
    as you said you installed jre .1.3 and then 1.4 but i didn`t install 1.3 i directly installed 1.4. after installing 1.4 i downloaded the jre as you said. but still i am facing the same problem
    and one thing else. i want to check it more then one system. i have to download it again and again can i download its setup once on my harddisk.
    please send me the link
    waiting for your reply
    thanx in advance
    Waris Mirza

  • [solved] Gnome bluetooth-applet doesn't start

    Hello! Since yesterday, my bluetooth-applet doesn't start. I get this message:
    [bebop@int Desktop]$ bluetooth-applet
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    Xlib:  extension "Generic Event Extension" missing on display ":0.0".
    How can I solve this problem? Thanks Bebop
    Last edited by Bebop (2009-02-14 11:59:31)

    Hm, I still have this issue, despite upgrading...
    andi@hbar> y -Ss bluetooth
    extra/gnome-bluetooth 0.11.0-3 [installed]
    The GNOME Bluetooth Subsystem.
    extra/bluez-gnome 1.8-4 [installed]
    Bluetooth PIN helper applications
    extra/kdebluetooth 4.0.3-2
    A collection of Bluetooth utilities and modules for KDE based on BlueZ
    extra/bluez 4.30-1 [installed]
    Libraries and tools for the Bluetooth protocol stack
    extra/libbtctl 0.10.0-2 [installed]
    GObject wrapper for Bluetooth functionality.
    community/bluemote 2.0-5
    Will turn your Bluetooth-enabled mobile phone into a remote control for your computer
    community/blueman 0.3-5
    GTK+ bluetooth management utility
    community/python-pybluez 0.16-1
    Python wrapper for the BlueZ Bluetooth stack
    Can anyone help?

  • Applet doesn't run on Apache

    Now that I've copied my applet's class file onto my HTTP Apache server, the applet doesn't work.
    The error message is: "the applet is notinited; loading of java applet failed",
    My applet work if i run on usual way but not when I put it on Apache web server.
    What is the solution of this problem?
    Any help would be appreciated.
    Thanks

    So you're saying that you just do a file|open from your browser and open the HTML page and all is well, but when you moved the HTML page and the class file to somewhere under the docroot of your Apache installation you can hit the page but your browser doesn't load the applet, is that right?

  • Brightness gnome-applet doesn't work....

    Hi,
    my brightness gnome-applet doesn't wok in my sony vaio vgn s5m....
    how to resolve?
    thanks.

    alex_anthony wrote:
    It doesn't work on a lot of computers. Its because the BIOS is handling your brightness instead of GNOME. I don't think there is a solution. You'll just have to use the keyboard.
    100th Post!
    thanks

Maybe you are looking for

  • Time Evaluation: Problem with Absence Quotas

    Hi Gurus, When vacation days are keyed in advance, and at a later date are made inactive as a result of a LOA. What happens in those cases is that SAP still considers the absence valid and it remains as deducted from the vacation quotas. How can we p

  • Adobe Photoshop Elements 9 downloading issue

    I have adobe photoshop elements 9 and I am trying to reload on my computer.  The disc will not run.  I have the case with the serial # , can I get it downloaded from the web? Thanks Linda

  • Trigger  alert  on basis of certain field in interface

    Dear Experts, This is a concern regarding sending Alert to users by mail in XI. IDOCs are reaching XI.The validations are not done in the Sender Side. For a certain field of the IDOC, the permitted values are 2/3/4 . If  user passes some other values

  • Problems With My Mail Received By Others

    I am using an eMac with 384MB of Ram and 28.67 GB of DIsk Space.I am using 10.3.9 OS which I just recently installed.The email account is Apple mail 1.3.11(v622/623). I send e-mails using Apple Mail and I have been told by several people that my emai

  • Opening something attached to an email

    Everytime I open something attached to an email or try and downloads something onto my computer, the whole safari shuts down and will not open it. What do I do? Its only been doing this for about a week, so its not what I am opening as I cant open th