It is possible to destroy (kill) an applet?

Hi, everybody
It is possible to destroy (kill) an applet like a Frame, as using something like:
public boolean handleEvent ( Event e){ 
if (e.id == Event.WINDOW_DESTROY)
System.exit( 0 );
I know that this method is used on Frame, to destroy it. Can I use something similar in an applet?

Here is the only reference in the search data on site here, for "Applet Destroy".
http://java.sun.com/javaone/sessions/slides/TT09/views10.htm
Do you mean to end the Applet? as in ending a program?
Or to get rid of the Applet as in Delete it?
Sincerely Shadow Cat

Similar Messages

  • How to kill the applet

    how to kill the applet which in the browser.
    With Regards
    Santhosh

    my code.. this is main program for my applet. can find out errors. if not i will send the code to u.
    import java.awt.*;
    import java.awt.event.*;
    import java.applet.*;
    import java.net.*;
    import java.io.*;
    public class StyleEditor extends Applet implements ItemListener ,ColorListener
        public ImageButton imgBold,imgItalic;
        public ColorButton colorButton;
        public Choice fontFace,fontSize;
        public TextArea textArea;
        public Panel toolBar,textPanel;
        public String content;
        public Font font = new Font("Arial",Font.ITALIC,16);
        public ColorDialog dialog;
        public Frame f;
        public String sColor;
        public InputStream in;
        private int size[] = {8,10,12,14,18,24,36};
        private Label textLabel;
        public void init()
            try
                setLayout(new BorderLayout());
                toolBar = new Panel();
                toolBar.setBackground(Color.lightGray);
                Toolkit toolkit = getToolkit();
                in = StyleEditor.class.getResourceAsStream("bold.gif");
                byte bin[] = new byte[in.available()];
                in.read(bin);
                Image ibold = toolkit.createImage(bin);
                in = StyleEditor.class.getResourceAsStream("italic.gif");
                byte binc[] = new byte[in.available()];
                in.read(binc);
                Image iitalic = toolkit.createImage(binc);
                imgBold = new ImageButton(ibold);
                imgItalic = new ImageButton(iitalic);
                fontFace = new Choice();
                fontSize = new Choice();
                colorButton = new ColorButton();
                f = new Frame();
                dialog = new ColorDialog(f,"Color Chooser",true,StyleEditor.this);
                textLabel = new Label("             Edit Style   ",Label.CENTER);
                textLabel.setFont(new Font("Arial",Font.BOLD,18));
                String editColor= getParameter("editcolor");
                if(editColor!=null)
                    int eValue = Integer.parseInt(editColor,16);
                    textLabel.setForeground(new Color(eValue));
                String fontArray[] = toolkit.getFontList();
                content = getParameter("style");
                String fname = getParameter("fname");
                String fsize = getParameter("fsize");
                Boolean bBold = new Boolean(getParameter("bold"));
                Boolean bItalic = new Boolean(getParameter("italic"));
                sColor= getParameter("oldcolor").substring(1);
                int value = Integer.parseInt(sColor,16);
                colorButton.setColor(new Color(value));
                boolean bold = bBold.booleanValue();
                boolean italic = bItalic.booleanValue();
                imgBold.setSelected(bold);
                imgItalic.setSelected(italic);
                for(int i=0;i<fontArray.length;i++)
                    fontFace.addItem(fontArray);
    fontFace.addItemListener(this);
    for(int i=0;i<size.length;i++)
    fontSize.addItem(size[i]+"");
    fontSize.addItemListener(this);
    toolBar.setLayout(new FlowLayout(FlowLayout.LEFT));
    toolBar.add(imgBold);
    toolBar.add(imgItalic);
    toolBar.add(fontFace);
    toolBar.add(fontSize);
    toolBar.add(colorButton);
    toolBar.add(textLabel);
    textPanel = new Panel();
    textPanel.setLayout(new BorderLayout());
    textArea = new TextArea(content);
    textArea.setEditable(false);
    textArea.setBackground(Color.white);
    textArea.setForeground(new Color(value));
    if(fname!=null && fsize!=null)
    setStyleFont(fname,fsize,bold,italic);
    textPanel.add(textArea);
    add(toolBar,BorderLayout.NORTH);
    add(textPanel,BorderLayout.CENTER);
    imgBold.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    boldActionPerformed(ae);
    imgItalic.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    italicActionPerformed(ae);
    colorButton.addActionListener(new ActionListener()
    public void actionPerformed(ActionEvent ae)
    if(!dialog.isVisible())
    dialog = null;
    dialog = new ColorDialog(f,"Color Chooser",true,StyleEditor.this);
    dialog.setLocation(colorButton.getLocation());
    dialog.setLocation(200,200);
    dialog.pack();
    dialog.setVisible(true);
    }catch(Exception e)
    System.out.println(e);
    public void setStyleFont(String fname,String fsize,boolean bold,boolean italic)
    int s = sizeValue(Integer.parseInt(fsize));
    fontFace.select(fname);
    fontSize.select(s+"");
    if(bold && italic)
    font = new Font(fname,Font.BOLD+Font.ITALIC,s);
    textArea.setFont(font);
    return;
    }else
    if(bold)
    font = new Font(fname,Font.BOLD,s);
    textArea.setFont(font);
    return;
    }else
    if(italic)
    font = new Font(fname,Font.ITALIC,s);
    textArea.setFont(font);
    return;
    }else
    font = new Font(fname,Font.PLAIN,s);
    textArea.setFont(font);
    return;
    public void itemStateChanged(ItemEvent e)
    String f = fontFace.getSelectedItem();
    String s = fontSize.getSelectedItem();
    font = new Font(f,font.getStyle(),Integer.parseInt(s));
    textArea.setFont(font);
    public void boldActionPerformed(ActionEvent ae)
    if(imgBold.isSelected())
    if(imgItalic.isSelected())
    font = new Font(font.getName(),Font.BOLD+Font.ITALIC,font.getSize());
    textArea.setFont(font);
    return;
    font = new Font(font.getName(),Font.BOLD,font.getSize());
    textArea.setFont(font);
    return;
    }else
    if(imgItalic.isSelected())
    font = new Font(font.getName(),Font.ITALIC,font.getSize());
    textArea.setFont(font);
    return;
    font = new Font(font.getName(),Font.PLAIN,font.getSize());
    textArea.setFont(font);
    return;
    public void italicActionPerformed(ActionEvent ae)
    if(imgItalic.isSelected())
    if(imgBold.isSelected())
    font = new Font(font.getName(),Font.BOLD+Font.ITALIC,font.getSize());
    textArea.setFont(font);
    return;
    font = new Font(font.getName(),Font.ITALIC,font.getSize());
    textArea.setFont(font);
    return;
    }else
    if(imgBold.isSelected())
    font = new Font(font.getName(),Font.BOLD,font.getSize());
    textArea.setFont(font);
    return;
    font = new Font(font.getName(),Font.PLAIN,font.getSize());
    textArea.setFont(font);
    return;
    public boolean isBold()
    return imgBold.isSelected();
    public boolean isItalic()
    return imgItalic.isSelected();
    public void colorSelection(Color currentColor)
    colorButton.setColor(currentColor);
    textArea.setForeground(currentColor);
    int r = currentColor.getRed();
    String red = Integer.toHexString(r);
    if(red.length()==1)
    red = 0+red;
    int g = currentColor.getGreen();
    String green =Integer.toHexString(g);
    if(green.length()==1)
    green = 0+green;
    int b = currentColor.getBlue();
    String blue =Integer.toHexString(b);
    if(blue.length()==1)
    blue = 0+blue;
    sColor = red+green+blue;
    public String getName()
    return font.getName();
    public int getFSize()
    switch(font.getSize())
    case 8 : return 1;
    case 10 : return 2;
    case 12 : return 3;
    case 14 : return 4;
    case 18 : return 5;
    case 24 : return 6;
    case 36 : return 7;
    default : return 0;
    public int sizeValue(int value)
    switch(value)
    case 1 : return 8;
    case 2 : return 10;
    case 3 : return 12;
    case 4 : return 14;
    case 5 : return 18;
    case 6 : return 24;
    case 7 : return 36;
    default : return 0;
    public void stop()
    System.out.println("Stop");
    destroy();
    public void destroy()
    imgBold=null;
    imgItalic=null;
    colorButton = null;
    fontFace =null;
    fontSize=null;
    textArea=null;
    toolBar=null;
    textPanel=null;
    content=null;
    font = null;
    dialog=null;
    f=null;
    sColor=null;
    in=null;
    textLabel=null;
    super.destroy();

  • Is it possible to LOAD and INSTALL applet during pre-personalization?

    Hi Friends..
    Currently, i use JCOP card
    I want to know the other way to LOAD and INSTALL applet not through CardManager..
    I mean, is it possible to LOAD and INSTALL applet during pre-personalization time?.
    Thanks in advance

    Hi,
    i want to LOAD and INSTALL Applets while pre-personalization phase..
    No, i don't want to defer the LOAD and INSTALL..In the past, we have used the pre-personalisation phase to load KDC keys onto a card and remove the ISK and set issuer specific identifiers (IIN and CIN) etc. You could also load your applet at this time if you wish. You can also load the applets at personalisation.
    How do you plan on doing the personalisation phase? If you were to use a GP scripting environment for example, the CAP files are embedded as a part of the install scripts and only loaded onto a card when you begin executing your personalisation scripts. Since I assume you will be using the small desktop printers mentioned in a different thread, you may be better off integrating the applet loading into your personalisation code (printer integration) so you do not need to double handle cards.
    Actually, is it possible to LOAD and INSTALL applet if we don't authenticate to the CardManager?..There are ways to load and install an applet without explicitly calling INIT UPDATE and EXTERNAL AUTH, but you still need to be authenticated to the card manager, otherwise anyone could manage card content. You can use install tokens and delegated management (which are all outlined in the GO Card Spec).
    Cheers,
    Shane

  • My phone got stolen, is it possible to destroy the device?

    My phone got stolen, is it possible to destroy the device?

    pearlielie wrote:
    My phone got stolen, is it possible to destroy the device?
    You mean with the special self-destruct option?

  • I lost my ipad? Is it possible to destroy it?

    I lost my Ipad. Is it possible to destroy it? I mean, is it possible to unable someone to re-use it?
    Best Regards!

    No.
    What To Do If Your iDevice Is Lost Or Stolen
    If you activated Find My Phone before it was lost or stolen, you can track it only if Wi-Fi is enabled on the device. What you cannot do is track your device using a serial number or other identifying number. You cannot expect Apple or anyone else to find your device for you. You cannot recover your loss unless you insure your device for such loss. It is not covered by your warranty.
    If your iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should have done in advance - before you lost it or it was stolen - and some things to do after the fact. Here are some suggestions:
    This link, Re: Help! I misplaced / lost my iPhone 5 today morning in delta Chelsea hotel downtown an I am not able to track it. Please help!, has some good advice regarding your options when your iDevice is lost or stolen.
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T. Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. What to do if your iOS device is lost or stolen
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
      8. Report Stolen iPad | Stolen Lost Found Online
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on iCloud
      3. OS X Lion/Mountain Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • Is it possible to destroy process tree in Java?

    I am creating a process using Runtime.exec(). Newly created process spawns another process and that may spawn other processes. I want to kill all these child processes when my application exits.
    Process.destroy() only kills the immediate child.
    Is it possible in Java to kill process tree? or is there any other way of achieving it?
    Thanks
    Sudhan.

    Depending on your operating system, create a shell script file that will call the other processes. Create another shell script file that will kill the processes created. Use Runtime.exec() to call each shell script. Not exactly 100% portable, but you are using Runtime.exec() anyway.
    - Saish
    "My karma ran over your dogma." - Anon

  • Is it possible to use JAXP in Applet? Really urgeng.

    I need to get String output from a DOM Document using JAXP in Applet. I want the entire XML document in one string .I write the code as following,but it doesn't work. Would you help me to point out the mistake I made in it?
    Any help would be appreciated,
    Thanks.
    import java.awt.*;
    import javax.swing.*;
    import javax.xml.parsers.*;
    import javax.xml.transform.*;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    import javax.xml.transform.dom.DOMSource;
    import java.io.*;
    import java.io.IOException;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import java.util.*;
    public class XMLTest extends JApplet {
         String str;
         public void init()
         str="hello";
    try
    DocumentBuilderFactory factory= DocumentBuilderFactory.newInstance();
    DocumentBuilder db =factory.newDocumentBuilder();
    Document m_dDoc = db.newDocument();
    Element e1=m_dDoc.createElement("first");
    Text tx;
    tx=m_dDoc.createTextNode("hi");
    e1.appendChild(tx);
    m_dDoc.appendChild(e1);
    DOMSource doms = new DOMSource(m_dDoc);
    Writer out = new StringWriter();
    StreamResult result = new StreamResult(out);
    TransformerFactory tf = TransformerFactory.newInstance();
    Transformer transformer = tf.newTransformer();//wrong
    transformer.transform(doms,result);
    str=result.toString();
    catch(Exception e)
    e.printStackTrace();
         public void paint(Graphics g)
              g.drawString(str, 50, 60 );
    }

    The problem is that using the transformer in an applet results in the exception:
    The exception is as following:
    org.apache.xml.utils.WrappedRuntimeException: Output method is xml could not loa
    d output_xml.properties (check CLASSPATH)
    at org.apache.xalan.templates.OutputProperties.getDefaultMethodPropertie
    s(OutputProperties.java:364)
    at org.apache.xalan.templates.OutputProperties.<init>(OutputProperties.j
    ava:130)
    at org.apache.xalan.transformer.TransformerIdentityImpl.<init>(Transform
    erIdentityImpl.java:104)
    at org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(Tran
    sformerFactoryImpl.java:804)
    at XMLTest.init(XMLTest.java:36)
    at sun.applet.AppletPanel.run(AppletPanel.java:341)
    at java.lang.Thread.run(Thread.java:536)
    I am still unclear to the cause, when I create a copy of the output_xml.properties file and put it somewhere in your classpathe (I put mine in a jar that the applet loads) you get:
    java.lang.ExceptionInInitializerError
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:140)
         at org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFactory.java:131)
         at org.apache.xalan.transformer.TransformerIdentityImpl.createResultContentHandler(TransformerIdentityImpl.java:232)
         at org.apache.xalan.transformer.TransformerIdentityImpl.transform(TransformerIdentityImpl.java:296)
         at com.thalesgroup.mss.infrastructure.xml.SOAPMessage.domDocToString(SOAPMessage.java:180)
         at com.thalesgroup.mss.applets.filemanager.XmlMessages.getFileList(XmlMessages.java:246)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame.getFileList(FileManagerFrame.java:575)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame.access$2(FileManagerFrame.java:29)
         at com.thalesgroup.mss.applets.filemanager.FileManagerFrame$fileList.run(FileManagerFrame.java:847)
    Caused by: java.lang.RuntimeException: The resource [ XMLEntities.res ] could not load: java.net.MalformedURLException: no protocol: XMLEntities.res
    XMLEntities.res      java.net.MalformedURLException: no protocol: XMLEntities.res
         at org.apache.xalan.serialize.CharInfo.<init>(CharInfo.java:202)
         at org.apache.xalan.serialize.SerializerToXML.<clinit>(SerializerToXML.java:292)
         ... 10 more
    Which leads me to some questions:
    What is XMLEntities.res, and how do I get one?
    Does anyone know which version of Xalan and JAXP comes with J2SE 1.4.1?
    Why the package "org.apache.xalan.Version" is not in the J2SE 1.4.1 release (and should it be?)

  • Can it be possible to destroy information I created on my lost pad, Can it be possible to destroy information I created on my lost pad

    How to destroy the system on my lost i pad 3?thanks

    If you are using iCloud, Wifi is turned on and the iPad is connected to a Wifi network, location services are turned on and Find My iPhone is installed, you can remote wipe the device.
    Log into your iCloud.com account from a computer, click on Find My iPhone and go from there. You can use the Find My iPhone app on an iDevice as well if you don't have access to a computer.

  • Input streams kill my applet

    This is probably a little thing that I have forgotten but I can't for the life of me get. Ok I should probably say I am running XP, with Java 1.5 and Firefox
    I have an applet that works fine on Eclipse but when I try to run it by it self it seems to die at the point where I have my input streams.
    Basicly I have included the test code that removes all the input processing and tree building. This test script below just opens a input stream, creates a tree with two nodes and displays the tree. If you remove any the 3 TRYS it will not work.
    I have tried various methods to read in the URL I have but it seems to die every time. I have included the code below. If anyone has any suggestions I would greatly appreciate it.
    Thanks
    Luis
    import java.applet.AppletContext;
    import java.awt.Color;
    import java.awt.Font;
    import java.io.DataInputStream;
    import java.io.InputStream;
    import java.net.*;
    import java.io.*;
    import javax.swing.JApplet;
    import javax.swing.JLabel;
    import javax.swing.JScrollPane;
    import javax.swing.JTree;
    import javax.swing.event.TreeSelectionEvent;
    import javax.swing.event.TreeSelectionListener;
    import javax.swing.tree.DefaultMutableTreeNode;
    import javax.swing.tree.TreePath;
    import java.net.URLConnection;
    public class TestApplet extends JApplet{
         // Variables used by the applet
         protected JTree jt;
         protected URL url;
         public void init() {
              setBackground(Color.lightGray);
              setFont(new Font("Verdana", Font.BOLD, 12));
              try{
              url = new URL("http://www.yahoo.com");
              //IF I REMOVE ANY OF THE FOLLOWING COMMENTS IT DOES NOT WORK
              //TRY 1.  IF REMOVED IT WILL NOT WORK
              /*     URL yahoo = new URL("http://www.yahoo.com/");
                   BufferedReader in = new BufferedReader(yahoo.openStream());
                   String inputLine;
                   while ((inputLine = in.readLine()) != null)
                       System.out.println(inputLine);
                   in.close();
              //TRY 2.  IF REMOVED IT WILL NOT WORK
              /*     URLConnection connection = url.openConnection();
                InputStream in = connection.getInputStream();
                   DataInputStream stream = new DataInputStream(in);
              //TRY 3.  IF REMOVED IT WILL NOT WORK
              //BufferedReader stream = new BufferedReader(new InputStreamReader(url.openStream()));
              DefaultMutableTreeNode rootNode = new DefaultMutableTreeNode(url);
             rootNode.add(new DefaultMutableTreeNode("Child 1"));
              JTree jt = new JTree(rootNode);
              // Tree Setup
              jt.setExpandsSelectedPaths(true);
              jt.setVisible(true);
              jt.putClientProperty("JTree.lineStyle", "Angled");
              getContentPane().removeAll();
              getContentPane().add(jt);
              //stream.close();
              //iStream.close();
              } catch (Exception e) {
                   e.printStackTrace();
         public void start() {
    }// end TreeApplet Class

    You are right on the money about the applet viewer working and the security errors I am getting. Look below this is from the console.
    java.security.AccessControlException: access denied (java.net.SocketPermission www.reservhotel.com:80 connect,resolve)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkConnect(Unknown Source)
         at sun.net.www.http.HttpClient.openServer(Unknown Source)
         at sun.net.www.http.HttpClient.<init>(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.http.HttpClient.New(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at RHMenu.start(RHMenu.java:80)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    I understand that the applet cannot connect to a server other than the one it is connected to but shouldn't I be able to connect to "www.yahoo.com"? I tried putting the URL and open stream in the start thread but it does not seem to work. When I run it in a web browser, the Java Sun comes up and it says it is inited and started but nothing comes up. Any ideas?
    Thanks,
    Luis

  • Is it possible to destroy a mozActivity from javascript?

    Created mozActivity from javascript as follows
    var openSettings = new MozActivity({
    name : "configure",
    data : {
    target : "device"
    Is there any mehod to close webActivity from javascript? like MozActivity.close() or MozActivity.destroy()

    Hi Anna123,
    The SUMO forums are geared towards user-related questions, focusing on the basic apps and features available in the phone.
    For developer-related questions, you may have better luck finding a solution in the following websites:
    * [https://developer.mozilla.org/en-US/Apps App Center on MDN (Mozilla Developer Network)]
    * [http://stackoverflow.com/questions/tagged/firefox-os StackOverflow]
    I hope you find this information is helpful. Please let us know if you come across any user-related issues in the future, and we'll be happy to help you! =)
    Thanks,
    - Ralph

  • Background image/reloading/closing applet

    2 questions:
    1) How do I put a background gif/jpg image on a frame window?
    2) Is there a method or command that can restart or reload the current applet?
    3) What's the best normal way to kill/exit the applet? (System.exit() ?)
    What about browser, how do I close the applet in the browser.
    Appreciate any help.
    Regards,
    Helix
    http://www27.brinkster.com/helixical

    I think if you understand Applet's life cycle clearly you'll find answers to questions 2 and 3:
    init() - initializes the applet for the first time.
    start() - starts the applet after initialization and after every time it was stopped. (answer for your Q2)
    paint() - does the actual painting of the applet.
    stop() - stops the applet (kind of temporary), can be restarted anytime.
    destroy() - kills the applet once for all. (answer for your Q3, call this whenever you want the applet to be destroyed).
    answer to Q1, try the following:
    in init():
    MediaTracker tracker = new MediaTracker (this);
    bgImage = getImage (new URL(getCodeBase(), getParameter("bgImage")));
    tracker.addImage (bgImage, 0);
    tracker.waitForAll();
    public void update( Graphics g) {
    paint(g);
    public void paint(Graphics g) {
    if(bgImage != null) {
    int x = 0, y = 0;
    while(y < size().height) {
    x = 0;
    while(x< size().width) {
    g.drawImage(bgImage, x, y, this);
    x=x+bgImage.getWidth(null);
    y=y+bgImage.getHeight(null);
    else {
    g.clearRect(0, 0, size().width, size().height);
    happy trying...
    iDriZ

  • How to delete the whole array programmatically

    Hello,
    Is it possible to destroy/kill an array programmatically (not delete subset)?  If yes, please tell me how.  THanks in advance.
    Sugento

    Hi Devchander,
    Thank you for your reply.  I'm really surprised.  Are you always working?   By emptying an array, it means LabVIEW still has that particular array in memory, doesn't it? what if I want to completely destroy the array to prevent memory issue?
    I have a PXI-6515, an industrial 24V DIO card, that I used to monitor optical sensors.  I just found out after I hooked it up that the output from DAQmx for DIO is a 1-D boolean array.  I like to be able to plot the digital signals on the Digital Waveform Graph, and to do that I have to use shift register and concactenate the previous array with the newly read digital signal.  I only want to keep the array when a certain criteria is met.  When it's no longer met, I want to "destroy" the array.  Attach is a sample VI.  Is this an efficient way to plot a Digital signal?  also, since i'm using 24V, i can't use the TTL counter.  Is there a VI readily available to count signal highs and lows? I have made a VI that specifically does this but I'm just wondering if there is LabVIEW function that does it.  Thanks.
    Peter
    Attachments:
    testing Digital signal array.vi ‏33 KB

  • I will be mad if i cannot kill applet

    Hi
    I use whole week to look for the soltion to kill the applet(destroy).
    My applet is a image slider.
    So there is Image[] image = new Image[];
    But when user leave the applet display page, back to menu select new images then play again. The image was still old. The applet still play the old image.
    I put cache-option=no.
    I disable the applet cache in Control panel aslo.
    In the java stop method
    i did
    stop()
    image=null;
    System.ecit();
    System.gc();
    super.destroy();
    All solution failed.
    so i tried my last solution to close the browser and open a new browser using javascript.
    But the applet console still there.
    the applet seems can pass during old browser to new browser.
    Who can help me?
    Please give me a method.
    Cause monday, my project would be demo to customer who come my place by air plane.
    if cannot solve the problem, it really cannot shame myself.
    Yang

    Hi ddanielvalladao
    Thank you
    I think your advice can sovle my problem.
    My applet work process is this way:
    1. html pass two parameters to applet
    start frame picture name
    end frame picture name
    2. then applet using socket passing two parameter to server side deamon.
    3. server deamon would transfer all of invovled picture in a specific folder.
    4. after that applet socket get a feedback, then play those picture always named 1,2,3... in that specific folder
    since those pictures are always be replaced before paly, so my applet SHOULD display all new pictures.
    BUT the problem is applet is always read those same name files from cache.
    now i really give up thinking the way to destroy applet. I am thinking i always put new picture in a new unique folder name.
    But i have new problem also.
    it is posted in arealdy.
    You would find it in the Java Programming.
    If you can take a look, i would be very appricated.
    Yang

  • Is it possible to replace applet with JSP

    I m working for the extension of the a Chat Application which is Applet based...
    It is slow as the Applet loaded...
    Is it possible to replace the applet with th JSP....
    what r the pro and cons of it???
    Thanks in advance...

    sure it is possible.
    main difference is, that applet maintance a permanten connection to the server and therefor has a 'smaller' communication where as with servlets/jsp the client will have to communicate more information for each request.
    have a look at pushlets.com, a servlet based framework that keeps the connection to the client open (works with hidden frames and dhtml). very smart framework.

  • HTML, JavaScript, Applets possible in Web-Dynpro Applications?

    Hello Community,
    I'm developing a JEE5-Application using Web-Dynpro for the User-Interface. Web-Dynpro works fine for the most functions and processes of the application. But there are some special requirements i don't know to implement them using Web-Dynpro.
    So my question is, if there is the possibility for:
    using HTML-Code in a Web-Dynpro UI-App  (the HTML dynamically generated by Web-Dynpro)
    using JavaScript in the Web-Dynpro UI-App
    using Java-Applets (for example to interact if local computer resources)
    using an HTML-Editor for editing Texts in the Application (for example freeware Edtior fckeditor)
    or do i have to use JSF in that case?
    regards
    Matthias

    Hi Matthias,
    I will answer your question point wise, in short:
    1) Using HTML-Code in a Web-Dynpro UI-App (the HTML dynamically generated by Web-Dynpro)
    Ans: it is possible to put the HTML code in the WebDynpro UI App. Use the IFrame Ui element to do the same. See this:
    http://help.sap.com/saphelp_nw04/helpdata/EN/e9/7652a84fada444bd11ca73670ce7dc/frameset.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/15/c07941601b1d09e10000000a155106/frameset.htm
    Displaying HTML in WebDynpro View
    2) Using JavaScript in the Web-Dynpro UI-App
    Ans: Not Possible.
    3) Using Java-Applets (for example to interact if local computer resources)
    Ans: Not Possible.
    4) Using an HTML-Editor for editing Texts in the Application (for example freeware Edtior fckeditor)
    Ans: Not possible.
    I hope this helps!
    Regards,
    Pravesh

Maybe you are looking for