Basic Java Applet

I am writing my first applet. I have read some tutorials but I cant get it to run in my browser (it runs in the applet viewer though). Please be detailed in your answer because this is my first applet.
This is the process I am following and the code:
Using eclipse I created a project. Then right click on it to create a class (as in java applicatons). But i replaced the code in the class file for:
package pkgs;
import java.awt.*;
import java.applet.*;
public class FirstApplet extends Applet{
     public void paint(Graphics g){
          g.drawString("Simple applet", 20, 20);
Then I run it as an applet and it worked in the applet viewer.
Then I created a jsp page calling the applet:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>V2</title>
</head>
<body>
<applet code="FirstApplet" width = "260"height = "200"></applet>
</body>
</html>
Then I run it again and "Export" it to .WAR in my tomcat root directory. I am calling the page but it says:
load: class FirstApplet not found.
java.lang.ClassNotFoundException: FirstApplet
The file FirstApplet.class is in the WEB-INF folder, under classes and the package name folder.
I even tried to copy paste the .class file to the same directory as the .jsp file but no luck.
What am I missing.
Thanks in advance for your help.
Edited by: Centinela66 on Sep 20, 2008 4:05 PM
Edited by: Centinela66 on Sep 20, 2008 4:08 PM

JSPs are server side technology and applets are client-side. There's no connection between them; you can use one without the other. The only interaction is that if you find it difficult to create the JSPs properly, then they won't have the proper HTML needed to tell the browser to download and start the applet.
I'd suggest not even bothering with JSP for now. Just create a plain HTML page that embeds the applet. Later on, if you need to, and after you have the HTML working, you can replace the HTML with a JSP page. Use the HTML as a guide to make sure you got the JSP right.
To start off, create a directory -- say, /applet -- that's off the docroot of your web server. This would be OUTSIDE and next to the WEB-INF directory (assuming you're using the same document hierarchy for both web and app servers, or just using an app server). Put the HTML file and the applet .class or .jar file in there.
Use curl (or just your browser if you don't have curl, but I'd strongly urge you to get curl and learn how to use it if you don't have it) to confirm that both the web page and the applet classes/jars are readable by clients. Use curl with the -i and -I headers to see that the server returns a 200 status.
Then you can work on editing the HTML to make it invoke the applet correctly.
Later on, you might want to move the applets and HTML. The ideal setup depends on issues such as, how do you deploy code and content; do you manage your own server; etc.

Similar Messages

  • Run Java Applet (JAR) in Visual Basic

    Hi,
    I want to start a java applet within a visual basic form.
    One opportunity would be to implement a browser control and load a html file with the applet object in it.
    Is there a way to load the applet in VB without a browser control?
    Thanks for any tips & hints

    Oh, I'm aware of this way to start the applet.
    That's not what I want to achieve.
    I want to have the possiblity to integtrate my applet in a vb application (in a window in the vb app). For example if I would use MDI Forms I want the java applet to start as a child within the main vb window.
    I thought of using a browser OCX Control and loading a html which has the object tag with the java applet.
    Thanks anyway!

  • How to use java applets inside visual basic

    hi everyone,
    i am new to programming specially java so please bear with me.
    having said that i am looking for a way to embed java applets in visual basic. so
    1) is it possibele?
    2) if yes(which i believe) then how?
    we are supposed to use VB but i hate it so looking for this way .
    any suggestions and help is whole-heartedly welcome.
    kindly help me.
    you can post ur replies here or mail me directly at my e-mail id
    [email protected]

    thanx
    i have 2 more queries.
    1) is this IE ACTIVE-X CONTROL present by default in VB or do i have to download some add-ons?
    2) how do i write a concurrent server in java . i mean is there any thing equivalent to the UNIX system's FORK()?what if i have to implement this in an applet?
    thanx again.

  • SeaMonkey v2.0.4's Java applets doesn't work all the time.

    Hello. I use Mozilla's SeaMonkey v2.0.4 (using binary from mozilla.org) in Debian/Linux. I can get Java applets to work on https://eetime11.adp.com/c08e/logon but not on http://javatester.org, http://java.com/en/download/installed.jsp, and http://java.com/en/download/help/testvm.xml
    Java Plug-in 1.6.0_20
    Using JRE version 1.6.0_20-b02 Java HotSpot(TM) Client VM
    User home directory = /home/ant
    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 and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    load: class testvm2/Main.class not found.
    java.lang.ClassNotFoundException: testvm2.Main.class
         at sun.applet.AppletClassLoader.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)
    FYI on my setups:
    $ pwd
    /home/Programs/seamonkey2/plugins
    $ ls -all
    total 28
    drwxr-xr-x 2 ant ant 4096 2010-04-15 15:46 .
    drwxr-xr-x 15 ant ant 4096 2010-04-16 08:32 ..
    lrwxrwxrwx 1 root root 32 2009-11-27 17:19 libflashplayer.so -> /home/Programs/libflashplayer.so
    lrwxrwxrwx 1 root root 63 2010-04-15 15:46 libjavaplugin_oji.so -> /home/Programs/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so
    -rwxr-xr-x 1 ant ant 15824 2009-10-17 09:30 libnullplugin.so
    $ ls -all /home/Programs/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so
    -rwxr-xr-x 1 ant ant 137021 2010-04-12 14:39 /home/Programs/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so
    Does anyone know why? Thank you in advance. :)
    Edited by: antdude on Apr 16, 2010 8:37 AM

    More poking around:
    $ java -version
    java version "1.6.0_18"
    OpenJDK Runtime Environment (IcedTea6 1.8pre) (6b18~pre2-1)
    OpenJDK Server VM (build 14.0-b16, mixed mode)
    # dpkg -l | grep ^ii |grep java
    ii ca-certificates-java 20091021 Common CA certificates (JKS keystore)
    ii java-common 0.35 Base of all Java packages
    ii libaccess-bridge-java 1.26.2-4 Java Access Bridge for GNOME
    ii libaccess-bridge-java-jni 1.26.2-4 Java Access Bridge for GNOME (jni bindings)
    ii libhsqldb-java 1.8.0.10-6 Java SQL database engine
    ii liblucene2-java 2.9.2+ds1-1 Full-text search engine library for Java(TM)
    ii libservlet2.4-java 5.0.30-12 Servlet 2.4 and JSP 2.0 Java library
    ii openoffice.org-java-common 1:3.2.0-4 full-featured office productivity suite -- arch-independent Java support files
    ii tzdata-java 2010h-1 time zone and daylight-saving time data for use by java runtimes
    # dpkg -l | grep ^ii |grep jre
    # locate bin/java
    /home/Programs/jre1.6.0_20/bin/java
    /home/Programs/jre1.6.0_20/bin/java_vm
    /home/Programs/jre1.6.0_20/bin/javaws
    /usr/bin/java
    /usr/bin/javaws
    /usr/lib/jvm/java-6-openjdk/bin/java
    /usr/lib/jvm/java-6-openjdk/bin/java-rmi.cgi
    /usr/lib/jvm/java-6-openjdk/bin/javaws
    /usr/lib/jvm/java-6-openjdk/jre/bin/java
    /usr/lib/jvm/java-6-openjdk/jre/bin/javaws
    /usr/lib/jvm/java-6-openjdk/jre/bin/javaws.real
    I tried to uninstall all the unneccesary Java packages, but still had some can't be removed because of other programs requiring it like OpenOffice:
    # apt-get remove openjdk-6-jre-headless
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    openoffice.org-filter-mobiledev ttf-sil-gentium ttf-sil-gentium-basic
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
    ca-certificates-java libaccess-bridge-java libaccess-bridge-java-jni libhsqldb-java liblucene2-java libservlet2.4-java
    openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib openoffice.org openoffice.org-base openoffice.org-officebean
    openoffice.org-report-builder-bin
    0 upgraded, 0 newly installed, 13 to remove and 125 not upgraded.
    After this operation, 114MB disk space will be freed.
    Do you want to continue [Y/n]? n
    Abort.
    # apt-get remove java-common
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
    openoffice.org-filter-mobiledev ttf-sil-gentium ttf-sil-gentium-basic
    Use 'apt-get autoremove' to remove them.
    The following packages will be REMOVED:
    ca-certificates-java java-common libaccess-bridge-java libaccess-bridge-java-jni libhsqldb-java liblucene2-java
    libservlet2.4-java openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib openoffice.org openoffice.org-base
    openoffice.org-officebean openoffice.org-report-builder-bin
    0 upgraded, 0 newly installed, 14 to remove and 125 not upgraded.
    After this operation, 115MB disk space will be freed.
    Do you want to continue [Y/n]? n
    Abort.
    Any ideas? :(

  • Socket communication failure between Java applet and C++ application

    I have a java applet that connects to a C++ application via Java's ServerSocket and Socket objects. THe C++ application is using the Winsock 2 API. The applet and application are running on an NT workstation (SP 6) and using IE (5.5) For a very simple C++ test applications the communictions work fine. Once more code gets added to the C++ application the portion of the socket that C++ listens to seems to close. Upon performing a recv call the return value is a zero. Microsoft insists this is a sign the Java side has shut down the socket. The Java applet can still receive messages from the C++ app but C++ cannot receive responses from the Java side. Java throws no exceptions and an explicit check of the socket shows no errors. Again, what puzzles me is that it works for simple C++ applications. Are there any known conflicts between Java and C++ in this regard?
    I have inlcuded the basic java code segments below.
    / run Method.
      * This method is called by the Thread.start() method. This
      * method is required for the implementation of the Runnable interface
      * This method sets up the server side socket communication and
      * contiuously loops looking for requests from a external
      * socket.
      * @author Chris Duke
      public void run(){
         // create socket connections
         boolean success = false;
         try {
             cServerSocket = new ServerSocket(cPortID);
             System.out.println("Waiting for client to connect...");
             cClientSocket = cServerSocket.accept();
             System.out.println("Client connected");
             // Create a stream to read from the client
             cInStream = new BufferedReader(new InputStreamReader(
               cClientSocket.getInputStream()));
             // Create a stream to write to the client       
             cOutStream = new PrintWriter(
               cClientSocket.getOutputStream(), true);
             success = true;
         }catch (IOException e) {
             System.out.println("CommSocket:Run - Socket Exception(1) " + e);
             success = false;
         // if the socket was successfully created, keep the thread running
         while (success){
             try{
                // check socket to see if it is still available for reading
                if (cInStream != null && cInStream.ready()){
                    // check for an incoming message
                    String message = ReceiveMessage();
                    // Send message to listeners
                    Event(message);
                if (cInStream == null){
                    success = false;
                    System.out.println("CommSocket:Run - shutdown");
             }catch (IOException e){
                System.out.println("CommSocket:Run - Socket not ready exception");
                break;
    // SendMessage method -
      *  Sends a text message to a connected listener through port specified by portID
      * @author Chris Duke
      * @param  String message - This will be the message sent out through the server
      * socket's port specified by portID.
       public void SendMessage(String message){
          cOutStream.println(message);
          if (cOutStream.checkError() == true)
            System.out.println("SendMessage : Flush = Error");
          else{
            System.out.println("SendMessage : Flush - No Error");
       }

    a very simple C++ test applications the communictions work fine. Once more code gets added to the C++ application the portion of the socket that C++ listens to seems to close.
    This quite strongly implicates the extra code in the C++ App. The firstly thing I would try would be telnet. Try connecting to both versions of the C++ Application and manually reproducing a proper exchange.
    a recv call the return value is a zero. Microsoft insists this is a sign the Java side has shut down the socket.
    A correct implementation of recv should return the number of bytes received, or -1 for an error. A zero return indicates no bytes received not a socket closed/error. This sounds like FUD to me.
    Are there any known conflicts between Java and C++ in this regard?
    I can see no obvious faults, though the code is incomplete, I don't think it's an sockets implementation issue, at either end, it sounds more likely to be a protocol/handshaking bug in the C++ App.

  • COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET: US$20 AWARD FOR SOLUTION!

    COMMUNICATION BETWEEN JAVASCRIPT AND JAVA APPLET PROBLEM (Easy Filter Java Applet) -
    US$20 TO ANYONE WHO CAN RESOLVE THE PROBLEM
    To forum visitors:
    I am prepared to pay a standard shareware fee of US$20 to a user who can resolve this technical problem.
    If your advice resolves the problem, I'll forward the payment to your postal address (include your
    address with your reply, and also your email address)
    I am attempting to enable a HTML button (using Javascript's onClick command) to directly input a number into one of the parameter text boxes in the Easy Filter Java applet (ie, enter a new color value number in the text field of the standard Colors Multiplicator Filter interface).
    The applet is Freeware and can be downloaded at: http://www.javazoom.net/applets/easyfilter10/EasyFilter10.html
    (It is a very effective bitmap display and editing utility)
    To achieve this, I am trying to access the part of the applet that defines and sets the textbox. The text box is defined in the .class file by accessing the parameter details in the genericfilter.txt file (accompanies the .class files). I need to access 'private String appletInitialize()' and then one of the 'textFieldParameters' which sets the textbox.
    I understand the basic syntax for referencing the applet:
    document.appletname.setString("An example"). However, accessing the text fields in this applet is more complex!!
    Please can you recommend the correct Javascript syntax to achieve communication with the applet.
    Thank you for your kind assistance.
    JM Graham
    [email protected]
    The Java source code for the applet: EasyFilter.class
    # Easy Filter - E.B/JavaZOOM 1999 #
    # Contact: [email protected] #
    # http://javazoom.hypermart.net #
    /* Originally compiled from EasyFilter.java */
    import java.awt.*;
    import java.io.*;
    import java.net.*;
    import java.applet.Applet;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import java.awt.image.MemoryImageSource;
    import java.awt.image.PixelGrabber;
    import java.util.Vector;
    public synchronized class EasyFilter extends Applet implements KeyListener
    private String paramFileName;
    private Color bgColor;
    private Color fgColor;
    private Color parColor;
    private Color sepColor;
    private Color titleColor;
    private Color helpColor;
    private int WinWidth;
    private int WinHeight;
    private String title;
    private String logoFileName;
    private String originalImageFileName;
    private String filteredCaption;
    private String originalCaption;
    private Vector paramsName;
    private Vector paramsValue;
    private Vector paramsComment;
    private Panel panelParameters[];
    private Label labelParameters[];
    private TextField textFieldParameters[];
    private Label labelComments[];
    private int nbParameters;
    private ScrollPane scrollPaneParams;
    private Panel panelParams;
    private Image theLogo;
    private Image theOriginalImage;
    private Image theFilteredImage;
    private int theOriginalPixelArray[];
    private int logoWidth;
    private int logoHeight;
    private int imageWidth;
    private int imageHeight;
    private drawCanvas canvasTitle;
    private Panel panelTitle;
    private Label labelTitle;
    private Panel panelImages;
    private Panel panelOriginalImage;
    private drawCanvas canvasOriginalImage;
    private Label labelOriginalImage;
    private Panel panelFilteredImage;
    private drawCanvas canvasFilteredImage;
    private Label labelFilteredImage;
    private Panel panelHelp;
    private Label labelHelp;
    private int Yspc;
    private FilterImplementation theFilter;
    public void init()
    String string = null;
    string = appletInitialize();
    setBackground(bgColor);
    if (string != null)
    removeAll();
    setBackground(Color.white);
    setForeground(Color.black);
    Label label = new Label(new StringBuffer("Error: ").append(string).toString(), 1);
    Panel panel = new Panel();
    panel.add(label);
    add(panel);
    setLayout(new FlowLayout(1, 5, Yspc));
    public void keyPressed(KeyEvent keyEvent)
    panelHelp.removeAll();
    boolean flag = true;
    if (KeyEvent.getKeyText(keyEvent.getKeyCode()).equals("Enter"))
    for (int i = 0; i < nbParameters; )
    try
    paramsValue.setElementAt(new Double(textFieldParameters.getText()), i);
    i++;
    catch (NumberFormatException e)
    labelHelp.setText(labelParameters[i].getText() + ": Not a Number");
    flag = false;
    break;
    if (flag == 1)
    labelHelp.setText(" .... Running, please wait .... ");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    panelHelp.doLayout();
    theFilter.updateParameters(paramsValue);
    theFilter.computeFilter();
    theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
    canvasFilteredImage.setImage(theFilteredImage);
    canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
    canvasFilteredImage.repaint();
    panelHelp.removeAll();
    labelHelp.setText("- Done -");
    else
    labelHelp.setText("- Press Enter to run the Filter -");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    panelHelp.doLayout();
    public void keyReleased(KeyEvent keyEvent)
    public void keyTyped(KeyEvent keyEvent)
    private String appletInitialize()
    WinWidth = size().width;
    WinHeight = size().height;
    if (getParameter("bgcolor") == null)
    bgColor = new Color(0, 0, 40);
    else
    bgColor = new Color(Integer.parseInt(getParameter("bgcolor"), 16));
    if (getParameter("fgcolor") == null)
    fgColor = new Color(255, 255, 255);
    else
    fgColor = new Color(Integer.parseInt(getParameter("fgcolor"), 16));
    if (getParameter("sepcolor") == null)
    sepColor = new Color(158, 128, 128);
    else
    sepColor = new Color(Integer.parseInt(getParameter("sepcolor"), 16));
    if (getParameter("parcolor") == null)
    parColor = new Color(24, 24, 24);
    else
    parColor = new Color(Integer.parseInt(getParameter("parcolor"), 16));
    if (getParameter("titlecolor") == null)
    titleColor = new Color(255, 255, 0);
    else
    titleColor = new Color(Integer.parseInt(getParameter("titlecolor"), 16));
    if (getParameter("helpcolor") == null)
    helpColor = new Color(0, 255, 255);
    else
    helpColor = new Color(Integer.parseInt(getParameter("helpcolor"), 16));
    paramsName = new Vector();
    paramsValue = new Vector();
    paramsComment = new Vector();
    paramFileName = getParameter("paramfile");
    String string = readParams(paramFileName);
    if (string != null)
    return string;
    MediaTracker mediaTracker = new MediaTracker(this);
    theOriginalImage = getImage(getDocumentBase(), originalImageFileName);
    mediaTracker.addImage(theOriginalImage, 0);
    if (logoFileName != null)
    theLogo = getImage(getDocumentBase(), logoFileName);
    mediaTracker.addImage(theLogo, 1);
    try
    mediaTracker.waitForAll();
    catch (InterruptedException e1)
    return "Error while loading image";
    if (mediaTracker.isErrorAny())
    return "Error while loading image";
    if (logoFileName != null)
    logoWidth = theLogo.getWidth(this);
    logoHeight = theLogo.getHeight(this);
    imageWidth = theOriginalImage.getWidth(this);
    imageHeight = theOriginalImage.getHeight(this);
    theOriginalPixelArray = new int[imageWidth * imageHeight];
    PixelGrabber pixelGrabber = new PixelGrabber(theOriginalImage, 0, 0, imageWidth, imageHeight, theOriginalPixelArray, 0, imageWidth);
    try
    pixelGrabber.grabPixels();
    panelTitle = new Panel();
    canvasTitle = new drawCanvas();
    labelTitle = new Label();
    panelTitle.setLayout(new FlowLayout(1, 10, Yspc));
    add(panelTitle);
    panelTitle.setBackground(bgColor);
    panelTitle.add(canvasTitle);
    canvasTitle.setImage(theLogo);
    canvasTitle.setBounds(0, 0, logoWidth, logoHeight);
    labelTitle.setText(title);
    catch (InterruptedException e2)
    return "Internal Error, Try RELOAD !";
    if (title != null)
    panelTitle.add(labelTitle);
    labelTitle.setForeground(titleColor);
    labelTitle.setFont(new Font("Dialog", 1, 14));
    panelImages = new Panel();
    panelOriginalImage = new Panel();
    canvasOriginalImage = new drawCanvas();
    labelOriginalImage = new Label();
    panelFilteredImage = new Panel();
    canvasFilteredImage = new drawCanvas();
    labelFilteredImage = new Label();
    panelImages.setLayout(new FlowLayout(1, 10, Yspc));
    add(panelImages);
    panelImages.setBackground(bgColor);
    panelOriginalImage.setLayout(new BorderLayout(0, 2));
    panelImages.add(panelOriginalImage);
    panelOriginalImage.setBackground(Color.black);
    panelOriginalImage.add("Center", canvasOriginalImage);
    canvasOriginalImage.setImage(theOriginalImage);
    canvasOriginalImage.setBounds(0, 0, imageWidth, imageHeight);
    labelOriginalImage.setText(originalCaption);
    labelOriginalImage.setAlignment(1);
    panelOriginalImage.add("South", labelOriginalImage);
    labelOriginalImage.setBackground(Color.lightGray);
    labelOriginalImage.setForeground(Color.black);
    labelOriginalImage.setFont(new Font("SansSerif", 0, 10));
    panelFilteredImage.setLayout(new BorderLayout(0, 2));
    panelImages.add(panelFilteredImage);
    panelFilteredImage.setBackground(Color.black);
    panelFilteredImage.add("Center", canvasFilteredImage);
    theFilter = new FilterImplementation(paramsValue, theOriginalPixelArray, imageWidth, imageHeight);
    theFilter.computeFilter();
    theFilteredImage = createImage(new MemoryImageSource(theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight(), theFilter.getFinalImageBuffer(), 0, theFilter.getFinalImageWidth()));
    canvasFilteredImage.setImage(theFilteredImage);
    canvasFilteredImage.setBounds(0, 0, theFilter.getFinalImageWidth(), theFilter.getFinalImageHeight());
    labelFilteredImage.setText(filteredCaption);
    labelFilteredImage.setAlignment(1);
    panelFilteredImage.add("South", labelFilteredImage);
    labelFilteredImage.setBackground(Color.lightGray);
    labelFilteredImage.setFont(new Font("SansSerif", 0, 10));
    scrollPaneParams = new ScrollPane(0);
    panelParams = new Panel();
    nbParameters = paramsName.size();
    int i = WinHeight - (33 + 7 * Yspc + logoHeight + imageHeight + 23);
    if (i < Yspc + 2 + 24)
    i = Yspc + 2 + 24;
    scrollPaneParams.setBounds(0, 0, WinWidth - 10, i);
    panelParams.setLayout(new GridLayout(nbParameters, 1, 5, Yspc / 2));
    scrollPaneParams.add(panelParams);
    panelParams.setBackground(sepColor);
    panelParameters = new Panel[nbParameters];
    labelParameters = new Label[nbParameters];
    textFieldParameters = new TextField[nbParameters];
    labelComments = new Label[nbParameters];
    for (int j = 0; j < nbParameters; j++)
    panelParameters[j] = new Panel();
    panelParameters[j].setLayout(new FlowLayout(0, 5, 1));
    panelParams.add(panelParameters[j]);
    panelParameters[j].setBackground(parColor);
    labelParameters[j] = new Label();
    labelParameters[j].setText((String)paramsName.elementAt(j));
    panelParameters[j].add(labelParameters[j]);
    labelParameters[j].setForeground(fgColor);
    labelParameters[j].setFont(new Font("Dialog", 1, 12));
    textFieldParameters[j] = new TextField(8);
    textFieldParameters[j].setText(paramsValue.elementAt(j).toString());
    panelParameters[j].add(textFieldParameters[j]);
    textFieldParameters[j].setBackground(fgColor);
    textFieldParameters[j].addKeyListener(this);
    labelComments[j] = new Label();
    labelComments[j].setText((String)paramsComment.elementAt(j));
    panelParameters[j].add(labelComments[j]);
    labelComments[j].setForeground(fgColor);
    add(scrollPaneParams);
    panelHelp = new Panel();
    labelHelp = new Label();
    panelHelp.setLayout(new FlowLayout(1, 5, 0));
    add(panelHelp);
    panelHelp.setBackground(bgColor);
    labelHelp.setText(" Change colour values and press enter ");
    labelHelp.setAlignment(1);
    panelHelp.add(labelHelp);
    labelHelp.setForeground(helpColor);
    return null;
    private String readParams(String string1)
    Object object1;
    String string2;
    if (string1 == null)
    return "Filename of filter's parameters needed";
    try
    URL uRL = new URL(getDocumentBase(), string1);
    URLConnection uRLConnection = uRL.openConnection();
    uRLConnection.setDoInput(true);
    uRLConnection.setUseCaches(false);
    BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(uRLConnection.getInputStream()));
    string2 = null;
    catch ()
    return object1.getMessage();
    catch ()
    return object1.getMessage();
    catch ()
    return object1.getMessage();
    if (bufferedReader != null)
    Object object2;
    try
    for (object2 = bufferedReader.readLine(); object2 != null && string2 == null; object2 = bufferedReader.readLine())
    string2 = extractFormat(object2);
    catch ()
    string2 = object2.getMessage();
    finally
    bufferedReader.close();
    if (string2 != null)
    return string2;
    else
    return null;
    private String extractFormat(String string1)
    if (string1.length() == 0)
    return null;
    int i = 0;
    int j = string1.indexOf(" ", i);
    if (j == -1)
    return "Bad format error (space missing)";
    String string2 = string1.substring(i, j);
    if (string2.equals("TITLE"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in TITLE missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in TITLE missing)";
    title = string1.substring(i, j);
    return null;
    if (string2.equals("ORIGINALCAPTION"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in ORIGINALCAPTION missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in ORIGINALCAPTION missing)";
    originalCaption = string1.substring(i, j);
    return null;
    if (string2.equals("FILTEREDCAPTION"))
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in FILTEREDCAPTION missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in FILTEREDCAPTION missing)";
    filteredCaption = string1.substring(i, j);
    return null;
    if (string2.equals("LOGO"))
    i = j + 1;
    j = string1.length();
    logoFileName = string1.substring(i, j);
    return null;
    if (string2.equals("ORIGINALIMAGE"))
    i = j + 1;
    j = string1.length();
    originalImageFileName = string1.substring(i, j);
    return null;
    if (!string2.equals("PARAM"))
    return null;
    i = j;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    paramsName.addElement(string1.substring(i, j));
    i = j + 2;
    j = string1.indexOf(32, i);
    if (j == -1)
    return "Bad format in a PARAM line";
    try
    paramsValue.addElement(new Double(string1.substring(i, j)));
    j = string1.indexOf(34, i);
    catch (NumberFormatException e)
    return "Bad format in a PARAM line";
    if (j == -1)
    return "Bad format (Double quote in PARAM comment missing)";
    i = j + 1;
    j = string1.indexOf(34, i);
    if (j == -1)
    return "Bad format (Double quote in PARAM comment missing)";
    paramsComment.addElement(string1.substring(i, j));
    return null;
    public EasyFilter()
    logoHeight = 33;
    Yspc = 5;

    Addition to my above submission
    To clarify, I'll offer the US$20 to the FIRST person who offers me a workable solution to the problem, not to everyone!!!
    JMGRAHAM

  • How to activate Java Applets?

    Hi,
    I got some Java Applets that i try to run (again). Since Javas own security and firefox itself forbids to run Java without being activated by the user i thought i would be asked whether to activate java on my own site (local on the PC) or not. Although java is activated inside in the plugins-option menu and the correct installation of java is confirmed by java.com (test after the installation) my Java applets dont show up, not even a message saying "Applets are being blocked" or so.
    In chrome i can simply activate the NPAPI in the settings and enable the flag and the applets work. Isnt there a function similar to this?
    I would like to run Firefox portable on a CD to give to students. As the Java applets are being blocked i hoped to simply enable the corrosponding flag so prevent rewriting all the java applets.
    Is there another developer plugin of some sort that i can pre-install into Firefox portable that does the job?
    See blow for Versions of Windows, Firefox. Java Version 8 Update 45 (Build 1.8.0_45-b14) latest version.
    Kind regards,
    Marcel Klinge
    "application": {
    "name": "Firefox",
    "version": "37.0.2",
    "buildID": "20150415140819",
    "userAgent": "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0",
    "updateChannel": "release",
    "supportURL": "https://support.mozilla.org/1/firefox/37.0.2/WINNT/de/",
    "numTotalWindows": 1,
    "numRemoteWindows": 0
    "crashes": {
    "submitted": [],
    "pending": 0
    "modifiedPreferences": {
    "accessibility.typeaheadfind.flashBar": 0,
    "browser.cache.disk.smart_size.first_run": false,
    "browser.cache.disk.smart_size.enabled": false,
    "browser.cache.disk.capacity": 0,
    "browser.cache.frecency_experiment": 4,
    "browser.places.importBookmarksHTML": false,
    "browser.places.smartBookmarksVersion": 7,
    "browser.search.useDBForOrder": true,
    "browser.sessionstore.upgradeBackup.latestBuildID": "20150415140819",
    "browser.startup.homepage_override.mstone": "37.0.2",
    "browser.startup.homepage": "file:///C:/Users/Klinge/Desktop/Sign%C3%BC%20I+II%20-%20Neu/sueb1/html/index.html",
    "browser.startup.homepage_override.buildID": "20150415140819",
    "dom.ipc.plugins.sandbox.default": true,
    "dom.mozApps.used": true,
    "extensions.lastAppVersion": "37.0.2",
    "gfx.direct3d.last_used_feature_level_idx": 0,
    "media.gmp-gmpopenh264.lastUpdate": 1430384919,
    "media.gmp-gmpopenh264.version": "1.3",
    "media.gmp-manager.lastCheck": 1430384919,
    "network.cookie.prefsMigrated": true,
    "places.database.lastMaintenance": 1430385666,
    "places.history.expiration.transient_current_max_pages": 104858,
    "plugin.importedState": true,
    "plugin.disable_full_page_plugin_for_types": "application/pdf",
    "plugin.state.java": 2,
    "privacy.sanitize.migrateFx3Prefs": true,
    "storage.vacuum.last.places.sqlite": 1430385666,
    "storage.vacuum.last.index": 0
    "lockedPreferences": {},
    "graphics": {
    "numTotalWindows": 1,
    "numAcceleratedWindows": 1,
    "windowLayerManagerType": "Direct3D 11",
    "windowLayerManagerRemote": true,
    "adapterDescription": "ATI Radeon HD 4650",
    "adapterVendorID": "0x1002",
    "adapterDeviceID": "0x9498",
    "adapterSubsysID": "22691787",
    "adapterRAM": "512",
    "adapterDrivers": "atiumd64 atidxx64 atiumdag atidxx32 atiumdva atiumd6a atitmm64",
    "driverVersion": "8.632.1.2000",
    "driverDate": "8-17-2009",
    "adapterDescription2": "",
    "adapterVendorID2": "",
    "adapterDeviceID2": "",
    "adapterSubsysID2": "",
    "adapterRAM2": "",
    "adapterDrivers2": "",
    "driverVersion2": "",
    "driverDate2": "",
    "isGPU2Active": false,
    "direct2DEnabled": true,
    "directWriteEnabled": true,
    "directWriteVersion": "6.2.9200.16571",
    "webglRenderer": "Google Inc. -- ANGLE (ATI Radeon HD 4650 Direct3D11 vs_4_1 ps_4_1)",
    "info": {
    "AzureCanvasBackend": "direct2d 1.1",
    "AzureSkiaAccelerated": 0,
    "AzureFallbackCanvasBackend": "cairo",
    "AzureContentBackend": "direct2d 1.1"
    "javaScript": {
    "incrementalGCEnabled": true
    "accessibility": {
    "isActive": false,
    "forceDisabled": 0
    "libraryVersions": {
    "NSPR": {
    "minVersion": "4.10.8",
    "version": "4.10.8"
    "NSS": {
    "minVersion": "3.17.4 Basic ECC",
    "version": "3.17.4 Basic ECC"
    "NSSUTIL": {
    "minVersion": "3.17.4",
    "version": "3.17.4"
    "NSSSSL": {
    "minVersion": "3.17.4 Basic ECC",
    "version": "3.17.4 Basic ECC"
    "NSSSMIME": {
    "minVersion": "3.17.4 Basic ECC",
    "version": "3.17.4 Basic ECC"
    "userJS": {
    "exists": false
    "extensions": [],
    "experiments": []
    }

    use Robot Class
    java.awt.Robot since jdk1.3

  • Java Applet HelloWorld "Getting Started With Applets" example not working

    Hi there,
    It's been ages since I ran my Linux CentOS boot of Linux but I am going through the official oracle java applet tutorials, just every time I try and run the "Hello World" applet in Firefox 17.0.3 and I am running the Iced Tea thing for java applets.
    Every time I try and run the example from the following code:
    import javax.swing.JApplet;
    import javax.swing.SwingUtilities;
    import javax.swing.JLabel;
    public class HelloWorld extends JApplet
      // called when the user enters the html page:
      public void init() // keep apps within the init() function very small as per the http://docs.oracle.com/javase/tutorial/deployment/applet/appletMethods.html
        try{
          SwingUtilities.invokeAndWait(new Runnable()
            public void run()
           JLabel myLabel = new JLabel("Hello World");
           add(myLabel);
            } // end running the application
          }); //end of swing invokeand wait
        } catch (Exception error){ // end user running the app in page
           // System.err.println("GUI didn't work on initial run");
    }It keeps bringing up the error "Start: Applet not initialized" I did google that basic error and from what I found I should consult the JavaConsole, I know the console was removed from the Firefox menu quite a while ago. So went to find a way of loading it using the IcedTea one but it keeps bringing up a load of errors in even trying to run that.
    Is there anyway of sorting this out? I mean I have even tried installing the one on the oracle website, the plain JDK but nothing seems to work.
    Is there anyone that can help me get applets working? I was even going to go as far as to reinstall my distro but I want to avoid that as much as possible.
    Thanks and I look forward to any replies,
    Jeremy.

    in the Getting Started with Java DB tutorial they
    tell u how to set ur "DERBY_HOME" (what is that?).
    once i press enter after typing this command:
    set DERBY_HOME=D:\Java\Java
    Phonebook\javadb in my command prompt do i get
    any message or does it just go to the next line?type env or set or whatever in the command line to see what your environment variables are set to
    they also tell u how to set ur "JAVA_HOME" (what is
    that?). The Java installation you want to use
    in their example they give u this: set
    JAVA_HOME=C:\Program Files\Java\j2se1.4.2_05but in my java folder i have jdk1.6.0 and jre1.6.0
    but no j2se1.4.2_05, so which 1 must i choose?It's up to you. I'd go with 1.6
    also once ive done this: set
    DERBY_HOME=D:\Java\Java Phonebook\javadb this
    set JAVA_HOME=D:\Program
    Files\Java\jre1.6.0 and this set
    PATH=%DERBY_HOME%\bin;%PATH% and then type
    sysinfo to verify that the variables were set
    correctly i get these errors: 'D:\Java\Java' is
    not recognized as an internal or external command,
    operable program or batch file and '""'
    is not recognized as an internal or external command,
    operable program or batch file any help would
    really be appreciated because this is really killing
    me!you need to set your path variable - so something like:
    set PATH=C:\Program Files\Java\j2se1.4.2_05\bin

  • Java Applet Constantly Asks for Authentication

    With have a ADF application on Weblogic 10 that has occasional access to a Java applet. The Java applet is loaded whenever it's needed and not loaded whenever it isn't in a facet. The applet is currently in the public_html/applet folder.
    When we set the SSL configuration to requiring a client certificate, when the Java applet loads, it'll constantly ask for a client certificate even though the user already presented the client when hitting the website:
    Request Authentication Identification required. Please select certificate to be used for authentication.
    This is annoying to users and the Java Applet doesn't need authentication. Is there any way we can disable the authentication or remove the prompt?
    Here's the embedded applet code:
    <applet height="1" width="1" code="applet.Applet.class"archive="/app/applet/SApplet.jar" /><param name="permissions" value="all-permissions"/></applet>
    Things I've already tried:
    1) Setting the Applet up on HTTP instead of HTTPS; I get a warning about mixed content and still get the authentication pop-up.
    2) Created a minimal applet that only types out "HELLO WORLD" in the console, still get the authentication pop-up
    Here's the console window:
    Java Plug-in 1.6.0_35
    Using JRE version 1.6.0_35-b10 Java HotSpot(TM) Client VM
    User home directory = C:\Users\mfan
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
    security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
    security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,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.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,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.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,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.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.
    security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
    security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws
    security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
    security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy
    security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,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.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,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.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    security: property package.definition value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
    security: property package.definition new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.org.apache.xerces.internal.utils.,com.sun.org.apache.xalan.internal.utils.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
    basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@1df073d
    basic: Plugin2ClassLoader.addURL parent called for https://192.168.130.99/app/applet/HelloWorld.jar
    network: Cache entry not found [url: https://192.168.130.99/app/applet/HelloWorld.jar, version: null]
    network: Connecting https://192.168.130.99/app/applet/HelloWorld.jar with proxy=DIRECT
    network: Connecting http://192.168.130.99:443/ with proxy=DIRECT
    security: Loading Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading SSL Root CA certificates from C:\Users\mfan\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecacerts
    security: Loaded SSL Root CA certificates from C:\Users\mfan\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecacerts
    security: Loading SSL Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loaded SSL Root CA certificates from C:\Program Files (x86)\Java\jre6\lib\security\cacerts
    security: Loading Deployment SSL certificates from C:\Users\mfan\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecerts
    security: Loaded Deployment SSL certificates from C:\Users\mfan\AppData\LocalLow\Sun\Java\Deployment\security\trusted.jssecerts
    security: Loading certificates from Deployment session certificate store
    security: Loaded certificates from Deployment session certificate store
    security: Loading certificates from Internet Explorer ROOT certificate store
    security: Loaded certificates from Internet Explorer ROOT certificate store
    security: Checking if certificate is in Deployment denied certificate store
    security: Checking if certificate is in Deployment session certificate store
    security: Checking if SSL certificate is in Deployment permanent certificate store
    security: KeyUsage does not allow digital signatures
    (and here's where the prompt comes up).

    Actually, setting the archive to http://URL works fine. No more request authentications come up.

  • Java Applet - slow response over WAN and fast on LAN

    Hi All,
    Using Tomcat we have a Java applet that runs very slow over the Internet but just the opposite on the LAN (fast). On our website we have a link that we click which initializes the application. it is very slow but if the same link is clicked on the LAN it is very fast in responding. We have a 10MB internet connection and even when testing with very little traffic after peak business hours we have same results.When closing the browser and reopening it is much faster the second time. This tells me it is being Cached. If I go to a system that has never accessed the applet we are very slow again. We are hosting this application for a 3rd party so we did not write the code. This company is finger pointing at Router and I am finger pointing at Java application itself maybe not being optimal.
    I am attaching "debug" info from Java Console. Can anyone identify any issues from this debug output or familiarity with this type issue. Your insight is greatly appreciated.
    Java Plug-in 1.5.0_01
    Using JRE version 1.5.0_01 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Administrator
    network: Loading user-defined proxy configuration ...
    network: Done.
    network: Loading proxy configuration from Netscape Navigator ...
    network: Reading user preference file from C:\DOCUMENTS AND SETTINGS\ADMINISTRATOR\APPLICATION DATA\Mozilla\Profiles\default\4i0ghip7.slt\prefs.js
    network: Done.
    network: Loading browser proxy configuration ...
    network: Done.
    network: Proxy Configuration: Browser Proxy Configuration
    basic: Cache is enabled
    basic: Location: C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\javapi\v1.0
    basic: Maximum size: unlimited
    basic: Compression level: 0
    basic: Registered modality listener
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@b1b4c3, refcount=1
    network: Connecting http://www.mgaucb.com/gottlieb/images/codonix.png with proxy=DIRECT
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    Internal Version: 3.0.35 Build id: TB-200402041305-35
    Mar 7, 2009 1:12:03 AM com.codonix.trackerboard.gui.TrackerBoardApplet start(null:-1)
    INFO: Internal Version: 3.0.35 Build id: TB-200402041305-35
    Codebase: http://www.mgaucb.com/gottlieb/
    Mar 7, 2009 1:12:03 AM com.codonix.trackerboard.gui.TrackerBoardApplet start(null:-1)
    INFO: Codebase: http://www.mgaucb.com/gottlieb/
    Documentbase: http://www.mgaucb.com/gottlieb/TBUC.html
    Mar 7, 2009 1:12:03 AM com.codonix.trackerboard.gui.TrackerBoardApplet start(null:-1)
    INFO: Documentbase: http://www.mgaucb.com/gottlieb/TBUC.html
    WebAppPath: /gottlieb
    Mar 7, 2009 1:12:03 AM com.codonix.trackerboard.gui.TrackerBoardApplet start(null:-1)
    INFO: WebAppPath: /gottlieb
    basic: Modality pushed
    basic: Modality popped
    network: Connecting socket://www.mgaucb.com:80 with proxy=DIRECT
    Initial Trackerboard/Table: TBUrgentCare/null
    Mar 7, 2009 1:12:35 AM com.codonix.trackerboard.gui.TrackerBoardApplet doLogin(null:-1)
    INFO: Initial Trackerboard/Table: TBUrgentCare/null
    SiteID: CodoniX
    Mar 7, 2009 1:12:35 AM com.codonix.trackerboard.gui.TrackerBoardApplet doLogin(null:-1)
    INFO: SiteID: CodoniX
    liveconnect: the url of the applet is http://www.mgaucb.com and the permission is = false
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://www.mgaucb.com
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://www.mgaucb.com
    Starting UI Generator....
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://www.mgaucb.com
    Warning: No permission to control logging.
    Mar 7, 2009 1:12:58 AM com.codonix.uigenerator.StartApplet init(null:-1)
    WARNING: No permission to control logging.
    Warning: No permission to control logging.
    Mar 7, 2009 1:12:58 AM com.codonix.uigenerator.StartApplet init(null:-1)
    WARNING: No permission to control logging.
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://www.mgaucb.com
    liveconnect: JavaScript: calling Java system code
    liveconnect: JavaScript: default security policy = http://www.mgaucb.com
    liveconnect: JavaScript: calling Java system code
    network: Connecting socket://www.mgaucb.com:80 with proxy=DIRECT

    Hi Geoff,
    Thanks for posting here.
    Have you checked your internet edge router ? and make sure there is no any speed limitation set on it , like QOS.
    You may also try the methods below:
    1. Disable RSS, Chimney, AutoTuning on 2008R2
    How to know if TCP offload is working
    http://blogs.technet.com/b/brad_rutkowski/archive/2007/08/10/how-to-know-if-tcp-offload-is-working.aspx
    2. Install Hotfix 982860
    A computer that is running Windows 7 or Windows Server 2008 R2 takes four minutes to open a Microsoft Office 2003 document from a network share
    http://support.microsoft.com/kb/982860
    Thanks.
    Tiger Li
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Clickable/Linked Text in Java Applet

    Hi,
    I have always liked this tool http://link-verify.sourceforge.net/index.en.html and have always wanted to modify it to make the "referer" clickable so that I could easily click to link to the page that had the broken link more easily.
    The source code is available and well with the hard economic times I have time to finally modify this to work how I would like.
    Can anyone tell me how I would go about accomplishing this? I am a seasoned ASP.NET programmer and understand the overall logic, etc... It is just the Java syntax that I am missing.
    Basically I can discern that in source code, LinkFrame.java to be exact on line 308 the "referreeP" panel is being populated with a refL=new List(), where refL is a List that is populated as each link is processed as the applet runs.
    How can I make each of those items in the refL list clickable is my primary question for you all. Do I have to use some sort of listener on each item in the list, is that even the right approach to take.
    Any and all thoughts appreciated!
    PS - I want to shout out to Ralf Wiebicke for creating this wonderful tool, it has been a wonderful developer tool for me over the years.

    >
    Basically I can discern that in source code, LinkFrame.java to be exact on line 308 the "referreeP" panel is being populated with a refL=new List(), where refL is a List that is populated as each link is processed as the applet runs.
    How can I make each of those items in the refL list clickable is my primary question for you all. >Questions usually end with a question mark. Where is yours?
    If you check the JavaDocs for List, you will notice it has methods [addActionListener(ActionListener|http://java.sun.com/javase/6/docs/api/java/awt/List.html#addActionListener(java.awt.event.ActionListener)] ) and [addItemListener(ItemListener)|http://java.sun.com/javase/6/docs/api/java/awt/List.html#addItemListener(java.awt.event.ItemListener)]. Either of those listeners will detect actions/selections on the List.
    As for showing the links, look to [AppletContext.showDocument(URL)|http://java.sun.com/javase/6/docs/api/java/applet/AppletContext.html#showDocument(java.net.URL)].
    As an aside, the AWT widgets such as List are very old-hat. If you wanted to take on a bigger upgrade, you might convert the app. to use Swing.

  • 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.

  • I have a station that will not display a particular java applet.

    It has had 1.4, then 6.0 and when attempting to click on the applet of a calendar, a box pops up, then waits a second, then shows a red x.
    So I uninstalled all Java, rebooted, and installed 5.0.12 etc.
    It still does it and if you hit cancel, it puts undefined in the box where the date should belong on the form.
    I turned on through the console the logging and this is what appears if I look at the calendar after looking at a working java applet off of Sun's webpage. I only cut and pasted what appeared after I typed the address into the address bar and entered through it.
    (ok. starting below...)
    basic: Stopping applet ...
    basic: Finding information ...
    basic: Releasing classloader: sun.plugin.ClassLoaderInfo@1a082e2, refcount=0
    basic: Caching classloader: sun.plugin.ClassLoaderInfo@1a082e2
    basic: Current classloader cache size: 1
    basic: Done ...
    basic: Joining applet thread ...
    basic: Destroying applet ...
    basic: Disposing applet ...
    basic: Joined applet thread ...
    basic: Unregistered modality listener
    basic: Quiting applet ...
    (ok thats it)

    I think any version below version 1.6 doesn't have
    javax.swingThat's 1.1.6, not 1.6 ;)

  • Help with my basic java

    Hello i am in a high school programming class and i need help. I have to make an application that draws a basic face, and then i put in different scrollbars, drop menus and checkboxes to control how the face works. I have gotten most of what i need to do but i am stuck on, I need to have a so if i press it they will get closer together of farther apart, which is where im stuck. i can only make them move in the same direction. any ideas???
    heres the code.
    import java.awt.*;
    import java.awt.event.*;
    public class Unit9q extends java.applet.Applet implements AdjustmentListener,ItemListener {
         Graphics g;
         Checkbox mybox1,mybox2,mybox3,mybox4,mybox5;
         CheckboxGroup mygroup1,mygroup2;
         Choice mymenubar1,mymenubar2;
         String colorword,shapeword,menuitem1,menuitem2,eyefill,eyesstring;
         Color clr;
         int yaxis,inteyes,ineyes;
         Scrollbar yaxisscroll,eyes;     
         public void init() {
              yaxisscroll=new Scrollbar(0,50,1,120,140);
              yaxisscroll.addAdjustmentListener(this);
              yaxisscroll.setBounds(100,10,100,20);
              add(yaxisscroll);
              yaxis=120;
              eyes=new Scrollbar(0,50,1,120,140);
              eyes.addAdjustmentListener(this);
              eyes.setBounds(100,10,100,20);
              add(eyes);
              inteyes=110;
              mygroup1=new CheckboxGroup();
              mybox1=new Checkbox("Red",mygroup1,false);
              mybox2=new Checkbox("Blue",mygroup1,false);
              mybox3=new Checkbox("Green",mygroup1,false);          
              mybox4=new Checkbox("Filled",mygroup2,false);
              mybox5=new Checkbox("Outlined",mygroup2,false);
              add(mybox4);
              add(mybox5);
              mybox1.addItemListener(this);
              mybox2.addItemListener(this);
              mybox3.addItemListener(this);
              add(mybox1);
              add(mybox2);
              add(mybox3);
              clr=Color.white;
              mymenubar1=new Choice();
              mymenubar1.addItem("Square");
              mymenubar1.addItem("Circle");
              mymenubar1.addItem("Rectangle");
              mymenubar1.addItem("Oval");
              mymenubar1.addItemListener(this);
              mymenubar2=new Choice();
              mymenubar2.addItem("Square");
              mymenubar2.addItem("Oval");
              mymenubar2.addItemListener(this);
              add(mymenubar1);
         public void adjustmentValueChanged(AdjustmentEvent event){
              yaxis=yaxisscroll.getValue();
              inteyes=eyes.getValue();
              repaint();
         public void itemStateChanged(ItemEvent event) {
              menuitem1=mymenubar1.getSelectedItem();
              menuitem2=mymenubar2.getSelectedItem();
              if (mybox1.getState()==true) {clr=Color.red;}
              else if (mybox2.getState()==true) {clr=Color.blue;}
              else if (mybox3.getState()==true) {clr=Color.green;}
              repaint();
         public void paint(Graphics g) {
              g.setColor(Color.black);
              if (menuitem1.equals("Rectangle")){
                   g.drawRect(100,100,70,90);}
              else if (menuitem1.equals("Oval")){
                   g.drawOval(100,100,75,90);}
              else if (menuitem1.equals("Circle")){
                   g.drawOval(100,100,80,80);}
              else if (menuitem1.equals("Square")){
                   g.drawRect(100,100,80,80);}     
              if (menuitem2.equals("Circle")){
                   g.drawOval(80,100,10,10);}
              else if (menuitem2.equals("Square")){
                   g.drawRect(80,100,10,10);}     
                        g.setColor(clr);
              if (mybox4.getState()==true) {
                   g.fillRect(inteyes,120,10,10);
                   g.fillRect(ineyes,120,10,10);}
              else if (mybox5.getState()==true) {
                   g.drawOval(inteyes,120,10,10);
                   g.drawOval(ineyes,120,10,10);}     
              ineyes=inteyes+42;
              g.setColor(Color.black);     
              g.fillOval(128,yaxis,15,22);
              g.drawArc(111,160,50,20,0,180);     
         } //thank you if you can solve it

    Next time you post code, use the CODE button or [code] and [/code] tags so that it maintains the formatting from your editor.
    If two things are moving int the same direction, your adding N to both of their x-coordinates. If you want one to move in one direction and the other in the other direction, then you have to add N to one and -N to the other.

  • Java Applets and Packages

    Hi
    I have been having problems calling my own packages in java applets to no avail
    For a basic example i am storing graphics in a package called graphics and i have a class with a drawline function.
    How would i call this in my main program?
    At the top of the code i have imported the correct package using import useful.oh;
    I have tried the "oh oh = new oh();" which does not cause any compile errors however it doesnt result in a line on screen.
    I have also tried the oh.doIt(); function as suggested in some books, but java seems to dislike this and say it cannot find symbol doIt()
    Any help would be greatly appreciated!
    Excuse the formatting
    Thanks
    J Selby
    The package code:
    package useful;
    import java.util.*;
    import java.lang.*;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class oh {
    public void paint(Graphics g) {
    g.drawRect(100,50,200,50);
    The applet code:
    //Declare Java Libraries
    import useful.*;
    import java.lang.*;
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class calculator extends Applet
         Font screen = new Font("Tahoma", Font.BOLD, 11);
         public void init()
         // Set null layout - Gives freedom for button placement
         setSize(400,400);
         setBackground(new Color(36, 48, 74));
         setLayout(null);
    Button exit = new Button("Exit");
         Button go = new Button("Go");
         add(exit);
         exit.setLocation(155,10);
              exit.setSize(40,22);
    add(go);
         go.setLocation(120,10);
         go.setSize(25,22);
    Choice tech=new Choice();
    tech.addItem("Tutorial Menu");
    tech.addItem("Applet A");
    tech.addItem("Applet B");
    tech.addItem("Applet C");
    tech.addItem("Applet D");
    tech.addItem("Applet E");
    tech.addItem("Java Quiz");     
    add(tech);
         tech.setLocation(10,10);
         oh oh = new oh();

    From your code it is no where written that you are using the package called graphics
    You are been using
    package useful;
    this implies u r using the package called useful
    well let me tell you how to use packages.
    For example if you use a package called pack1
    then that file you need to compile from parent directory as
    javac -d filename.java
    this will give you the folder called pack1 and the compiled file placed in it..
    so to use this in other folder from parent directory then
    you have to import that file
    import pack1.filename;
    then this will allow you to acess all the methods from that class file..
    i hope you get me if any concerns can mail me at
    [email protected]

Maybe you are looking for

  • Acrobat 9 Pro Extended Trial - Export (a) and (b) Quiz Making

    (A)to .doc = text in text boxes! Not Wanted!How to avoid this? (B ) Can I build a quiz right from Acrobat 9 Pro Extended? I cannot find anything on the interface that would allow me to do this but I saw it done? I'm on a trial but I can aleady see Ve

  • BEFW11S4 v2 Wireless Problems w/ Vista

    I've have a BEFW11S4 v2 (firmware version: 1.45.10) wireless router for several years.  For the past year I've been running a Vista laptop along with my XP desktop.  The Vista laptop has been connected via wireless and desktop wired for the past year

  • ECC6 - ALV Grid Output Conversion Exit

    Hi, I'm creating a program in ECC6 to display the report in ALV grid by called FM: REUSE_ALV_GRID_DISPLAY. EG: Select field (TPLNR) from table IFLOT. Value retrieved are: ?0100000000000000029. However, the output doesnt do the conversion exit to chan

  • MBAM 2.5 Unable to find compatible TPM despite TPM available and device encrypted

    We have just installed and are piloting MBAM 2.5. Everything seems to have gone fine, machines are checking in getting policies, encrypting as they are supposed to and we can query MBAM for recovery keys and TPM passwords to do recoveries as needed.

  • Webutil   and jacob software

    while trying to run the jacob.jar we are running into into the following error 'Failed to load mail-class manifest attribute from c:\webutil\lib\jacob.jar' How can this error be trouble shooted, what should we check and verify?