Applet problem

Hi all,
I am developing a web application in which I am drawing hundreds of applets, which will paint according to status, different colors (based on data feed), my problem is with JRE 1.4.04 the applet will change the color and display the string value without any hickup. But if I change the JRE to 1.4.5 or greater, it changes the color, the string may not draw on the applet!
Second issue is
Because some times the number applete on a browser may go beyond 500, while scrolling the browser it takes loong time to scroll.
Can some one tell me what I am doing wrong?\
Thanks
Onapping

Sorry, you have the wrong forum. This forum is focused on the Web Application Framework (JATO) and the Sun Java Studio Enterprise Tools module used to create WAF apps.
Although someone on this forum maybe able to help, you might have better success on a forum that is focused on applets and Java in general.

Similar Messages

  • InitialContext - Applet Problem

    Hi,
    When i try to get InitialContext from Applet ( running from appletviewer),
    i'm hitting this error. Please help me to solve this problem
    Exactly this line gives the error
    InitialContext ic = new InitalContext ( hEnv )
    Error:
    javax.naming.NoInitialContextException: Cannot Instantiate class:
    weblogic.jndi.WLInitialContextFactory
    -regards
    Abdul Malik

    you can use applet to pull data periodically from the servlet.
    mj
    "Anthony A." wrote:
    What if you want to perform some type of 'realtime' push from the server?
    Anthony
    "minjiang" <[email protected]> wrote in message
    news:[email protected]...
    why do you have to call your ejbs in applet directly? Why not use aservlet in
    between?
    The overhead of downloading so many so big jar files to the client machinewill
    kill/time out any broswer http session.
    mj
    Abdul Malik wrote:
    Dear Friends,
    After 5 days of struggle, somehow i was managed to access the EJB from
    Applet. But very slow coz of Big Jar files ( can make it bit small by
    identitfying required classes ). I dont know this is correct approach
    or
    not, but works ( damn slow )
    What i did was
    1) Installed the Latest Plugin 1.3.1
    2) Downloaded HTMLConverter tool from java.sun.com and converted my
    html file to use plugin.
    3) inlcuded few jar files in archive tag.
    The files i added in archive tag is
    1) myapplet.jar ( applet classes )
    2) weblogicaux.jar ( !!!!!!!!!!!! quite big jar file )
    3) weblogicclass.jar ( jarred all the classes from classes\weblogicfolder
    (!!!!!!!!!! so big jar file !!!!!! )
    4) myejb.jar ( suppose to work with home and remote class, but notworking
    ( looking for container generated files). so i added my EJB.jar file.dont
    know why ?????????? )
    then it works.
    well, i am not happy with this kind of approach. if any body haveefficient
    one, please kindly post it.
    Note: i tried in 1.2.2 plugin ( works )
    Environment: Windows 2000 / Windows 98, Weblogic 5.1 Service pack 7
    -regards
    Abdul Malik
    "Daniel Hoppe" <[email protected]> wrote in message
    news:[email protected]...
    Anthony,
    why should he place j2ee.jar in the applet classpath? Shouldn't be there
    actually. Your problem seems to be related to a class which is not
    serializable.
    Daniel
    -----Ursprüngliche Nachricht-----
    Von: Anthony A. [mailto:[email protected]]
    Bereitgestellt: Freitag, 22. Juni 2001 18:10
    Bereitgestellt in: jndi
    Unterhaltung: InitialContext - Applet Problem
    Betreff: Re: InitialContext - Applet Problem
    As a test, try to place the j2ee.jar and weblogic.jar in your
    <archive tag>.
    I have this code in my applet's init() method and it fails
    due to a JMS
    Exception.
    I'm using BEA's web server, jndi server, and app server on
    the same box as
    the client.
    Thanks,
    Anthony
    code:
    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY,
    "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://anthony01:7001");
    System.out.println("creating context");
    InitialContext ctx = new InitialContext(ht);
    error:
    JMSException: weblogic.jms.common.JMSException:
    java.rmi.MarshalException:
    failed to marshal public abstract weblogic.jms.client.JMSConnection
    weblogic.jms.frontend.FEConnectionFactoryRemote.createConnecti
    on(weblogic.rj
    vm.JVMID,weblogic.jms.client.JMSCallbackRemote) throws
    javax.jms.JMSException,java.rmi.RemoteException; nested exception is:
    java.io.NotSerializableException: weblogic.jms.client.JMSCallback

  • Signed Applet problems in Vista + JMF

    Hi All,
    I'm new to Java Applet programming. I wrote an application which works as a VoIP Client in a webpage (Using JMF). Its working very fine in allmost all Windows XP machines.
    But not in Windows Vista machines. In Vista i'm getting the following error :
    "No permission to capture from applet" - Since its a Signed applet. The application is digitally signed from a CA. Even though its not working in Vista (IE and Mozilla Firefox also).
    I have went through the following link which says IE in Vista will run on protected mode, so Signed Applet will not have all the permission eventhough its signed for "AllPermission".
    ----- http://java.sun.com/javase/6/webnotes/install/system-configurations.html
    And also I'm not able to create a customized jar file for JMF using JMF Customizer. (JMF Customizer is an application which creates a jar file with specified classes). While creating a jar file I'm getting particular class is not available. (In Windows XP, this class is compilled at run time).
    Please let me know the following things,
    a) Is there any security settings i have to make to run Signed Applet in Windows Vista ?
    b) What is Java Policy file? I don't have any policy file - will it affect the application ?
    c) Do I need to sign each applet (say i have 5 applets in single jar file) ?
    d) In Vista how Mozilla Firefox are running (like IE7's restricted environment or XP compatiable mode) ?
    Thanks in Advance,
    Karthikeyan R

    I have exatly the same problem but not with the class itself. I have the problem with an jar that my class calls.
    I use jdk1.4.2. I think it's basicaly the same problem as "lfpgMW".
    I'll also whould like an idea...
    thanks

  • Display .gif In Applet Problem

    I have been making a game. Very simply, the game has a main class and another truely important class that extends JFrame, it is the map. In it i need to upload .gif files and display them. It worked up until recently because i needed to make a sepperate class. I know how to use the getImage() for Images and the the way for ImageIcons, but for some reason, they never display (they display just whiteness). My Code is as follows
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.*;
    import java.io.*;
    // when this puppy reads from a file, it'll be able to have 55 15 x 15 terrains per row
    // 35 15 x 15 terrains per column
    // arrows by everythign that u would need to consider in finding the problem
    // this is not the main class
    public class GameMap extends JPanel implements MouseListener, MouseMotionListener, KeyListener{
         public static final int MAX_BULLETS = 200;
         public static final int MAX_PLAYERS = 50;
         public static final int SPLAT_SIZE = 15;
         public static final int PLAYER_SIZE = 15;
         public static final int MAX_MESSAGES = 10;
         public static final int ROBOT_SIZE = 15;
         private static final int rowTerrains = 35;
         private static final int columnTerrains = 55;
         private static int currentBullets = 0;
         private static int currentPlayers = 0;
         private static int bulletRotation = 0;
         private static int aimX, aimY;
         private boolean mapLoaded;
         private boolean writingMessage;
         private boolean imagesLoaded;
         private int messageRotation;
         private int tileCoord;
         private String messageText = "";
         private String currentMap;
        private Bullet bullet[] = new Bullet[MAX_BULLETS];
        private Player player[] = new Player[MAX_PLAYERS];
        private Message message[] = new Message[MAX_MESSAGES];
        private Color backgroundColor = new Color(81, 141, 23);
        private Image offscreenMap; // offscreen image of map
        private Graphics mapGraphics;
         private ImageIcon yellowSplat1, yellowSplat2, yellowSplat3, yellowSplat4, yellowSplat5, bluePlayerBack, bluePlayerFront, bluePlayerRight, bluePlayerLeft, grass, tree, mountain, robot1;
         private Terrain terrain[] = new Terrain[(rowTerrains * columnTerrains)];
         public GameMap(){
              this(800, 450);
         public GameMap(int width, int height){
              addMouseListener(this);
              addMouseMotionListener(this);
              addKeyListener(this); // use method requestFocusInWindow() for this to work
              setPreferredSize(new Dimension(width, height));
              setBackground(backgroundColor);
              for (int x = 0; x < bullet.length; x++){
                   bullet[x] = new Bullet();
              for (int x = 0; x < player.length; x++){
                   player[x] = new Player();
              for (int x = 0; x < message.length; x++){
                   message[x] = new Message();
              for (int x = 0, currentX = 0, currentY = 0; x < (rowTerrains * columnTerrains); x++){
                   terrain[x] = new Terrain();
                   terrain[x].setX(currentX);
                   terrain[x].setY(currentY);
                   currentX += 15;
                   if (currentX > columnTerrains * 15){
                        currentX = 0;
                        currentY += 15;
              player[0].drawPlayer(0, 0);
              //loadMap("Map1.txt"); // this is called to load the map right when this object is initialized
         public void paintComponent(Graphics g){
              super.paintComponent(g);
              Graphics2D g2d = (Graphics2D)g;
              Composite originalComposite = g2d.getComposite();
              if (imagesLoaded == false){
                   yellowSplat1 = new ImageIcon("yellow1.gif");
                   yellowSplat2 = new ImageIcon("yellow2.gif");
                   yellowSplat3 = new ImageIcon("yellow3.gif");
                   yellowSplat4 = new ImageIcon("yellow4.gif");
                   yellowSplat5 = new ImageIcon("yellow5.gif");
                   bluePlayerBack = new ImageIcon("BlueBack.gif");
                   bluePlayerFront = new ImageIcon("BlueFront.gif");
                   bluePlayerLeft = new ImageIcon("BlueLeft.gif");
                   bluePlayerRight = new ImageIcon("BlueRight.gif");
                   grass = new ImageIcon("Grass.gif");
                   tree = new ImageIcon("Tree.gif");
                   mountain = new ImageIcon("Mountain.gif");
                   robot1 = new ImageIcon("Robot1.gif");
              if (mapLoaded == false){ // so a map is loaded when game is started
                   loadMap("Map1.txt");
                   mapLoaded = true;
              g.drawImage(offscreenMap, 0, 0, this);
              for (int x = 0; x < bullet[0].totalBullets; x++){
                   if (bullet[x].getArrived()){
                        //find splat type and display it
                        g2d.setComposite(makeComposite(0.5f));
                        switch (bullet[x].getSplatType()){
                             case 0:
                                  yellowSplat1.paintIcon(this, g2d, bullet[x].getDestX() - SPLAT_SIZE / 2, bullet[x].getDestY() - SPLAT_SIZE / 2);
                                  break;
                             case 1:
                                  yellowSplat2.paintIcon(this, g2d, bullet[x].getDestX() - SPLAT_SIZE / 2, bullet[x].getDestY() - SPLAT_SIZE / 2);
                                  break;
                             case 2:
                                  yellowSplat3.paintIcon(this, g2d, bullet[x].getDestX() - SPLAT_SIZE / 2, bullet[x].getDestY() - SPLAT_SIZE / 2);
                                  break;
                             case 3:
                                  yellowSplat4.paintIcon(this, g2d, bullet[x].getDestX() - SPLAT_SIZE / 2, bullet[x].getDestY() - SPLAT_SIZE / 2);
                                  break;
                             case 4:
                                  yellowSplat5.paintIcon(this, g2d, bullet[x].getDestX() - SPLAT_SIZE / 2, bullet[x].getDestY() - SPLAT_SIZE / 2);
                                  break;
                   else{
                        g2d.setComposite(originalComposite);
                        g2d.setColor(Color.yellow);
                        g2d.fillOval(bullet[x].getX(), bullet[x].getY(), 3, 3);
              g2d.setComposite(originalComposite);
              g.setColor(Color.yellow);
              for (int x = 0; x < player[0].totalPlayers; x++){
                   if (player[x].getPlayerPosition().equals("Back")){
                        bluePlayerBack.paintIcon(this, g2d, player[x].getX(), player[x].getY());
                   else if (player[x].getPlayerPosition().equals("Right")){
                        bluePlayerRight.paintIcon(this, g2d, player[x].getX(), player[x].getY());
                   else if (player[x].getPlayerPosition().equals("Left")){
                        bluePlayerLeft.paintIcon(this, g2d, player[x].getX(), player[x].getY());
                   else if (player[x].getPlayerPosition().equals("Front")){
                        bluePlayerFront.paintIcon(this, g2d, player[x].getX(), player[x].getY());
                   else{
                        g2d.fillOval(player[x].getX(), player[x].getY(), 15, 15);
              if (writingMessage){
                   g2d.setColor(new Color(0, 0, 130));
                   g2d.setComposite(makeComposite(0.5f));
                   g2d.draw3DRect(8, 7, 800, 17, true);
                   g2d.setComposite(originalComposite);
                   g2d.setColor(Color.yellow);
                   g2d.drawString(messageText, message[0].getX(), 20);
              for (int x = 0; x < MAX_MESSAGES; x++){
                   if (message[x].isDisplayed()){
                        g2d.drawString(message[x].getMessage(), message[x].getX(), message[x].getY());
         private AlphaComposite makeComposite(float alpha) {
              int type = AlphaComposite.SRC_OVER;
              return(AlphaComposite.getInstance(type, alpha));
         public void drawBullet(int aimX, int aimY){
              bullet[bulletRotation].drawBullet(player[0].getX() + PLAYER_SIZE / 2, player[0].getY() + PLAYER_SIZE / 2, aimX, aimY);
              player[0].setPlayerPosition(bullet[bulletRotation].getPlayerPosition());
              bulletRotation++;
              if (bulletRotation >= MAX_BULLETS){
                   bulletRotation = 0;
         public void loadMap(String map){
              mapLoaded = false;
              currentMap = map;
              try{
                   BufferedReader in = new BufferedReader(new FileReader(map));
                   String input, string1, string2;
                   for (int x = 0; x < terrain.length; x++){
                        terrain[x].setFilled(false);
                   for (int x = 0, currentArray; x < terrain.length; x++){
                        if ((input = in.readLine()) != null) {
                             StringTokenizer st = new StringTokenizer(input);
                             currentArray = Integer.parseInt(st.nextToken());
                             terrain[currentArray].setTerrainType(st.nextToken());
                             terrain[currentArray].setFilled(true);
                        else{
                             break;
                   in.close();
                   offscreenMap = createImage(size().width, size().height);
                   mapGraphics = offscreenMap.getGraphics();
                   //mapGraphics.clearRect(0, 0, size().width, size().height);
                   // everything from here down is to be painted to mapGraphics... but it doesn't get this far cuz of an error
                   for (int x = 0; x < terrain.length; x++){
                        if (terrain[x].getTerrainType().equals("Grass")){
                             grass.paintIcon(this, mapGraphics, terrain[x].getX(), terrain[x].getY());
                             System.out.println("terrain(" + x + ") is Grass");
                        else if (terrain[x].getTerrainType().equals("Tree")){
                             tree.paintIcon(this, mapGraphics, terrain[x].getX(), terrain[x].getY());
                             System.out.println("terrain(" + x + ") is Tree");
                        else if (terrain[x].getTerrainType().equals("Mountain")){
                             mountain.paintIcon(this, mapGraphics, terrain[x].getX(), terrain[x].getY());
                             System.out.println("terrain(" + x + ") is Mountain");
              catch (FileNotFoundException e){
                   System.out.println("Map not found");
              catch (IOException e){
                   System.out.println("IOException Error!");
              // **** mouse Listener ****//
         public void mouseClicked(MouseEvent e){}
         public void mousePressed(MouseEvent e){}
         public void mouseReleased(MouseEvent e){
              if (e.getButton() == 1){
                   //System.out.println("player[0].movePlayer(" + e.getX() + ", " + e.getY() + ")");
                   aimX = e.getX();
                   aimY = e.getY();
                   movePlayer(aimX, aimY);
              else if (e.getButton() == 3){
                   aimX = e.getX();
                   aimY = e.getY();
                   drawBullet(aimX, aimY);
         public void mouseEntered(MouseEvent e){
              if (isFocusOwner() != true){
                   requestFocusInWindow();
         public void mouseExited(MouseEvent e){}
         // **** end mouse listener ****//
         // **** mouse motion listener ****//
         public void mouseDragged(MouseEvent e){}
         public void mouseMoved(MouseEvent e){}
         // **** end mouse motion listener ****/
         public void keyPressed(KeyEvent e){}
         public void keyReleased(KeyEvent e){}
         public void keyTyped(KeyEvent e){}
    }I removed a few unnecessary methods from this code to make it easier to view. EVERYTHING works except for the images displaying. The reason i'm having this problem now is i just redid my workspace and copied the code and i think some glitch stopped it from compiling correctly all along so now i experience this problem in the applet viewer. Though, even before, i couldn't get anything to display in an applet.
    And yes, everything is in the same place as the html file.
    Thanks for your help!

    Here's a way to keep track of and paint images with a simple Rectangle array. And also a way to remove lengthy initialization code blocks from paintComponent. Move the images by moving the rectangles.
    import java.awt.*;
    import java.awt.event.*;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    import javax.swing.*;
    public class GameMapRx
        public static void main(String[] args)
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new GameMapPanel());
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
    class GameMapPanel extends JPanel
        Image[] images;
        Rectangle[] rects;
        boolean firstTime;
        final int PAD;
        public GameMapPanel()
            loadImages();
            firstTime = true;
            PAD = 20;
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            int w = getWidth();
            int h = getHeight();
            if(firstTime)
                initializeGameMap(w, h);
            for(int i = 0; i < rects.length; i++)
                Rectangle r = rects;
    g.drawImage(images[i], r.x, r.y, this);
    g2.draw(r);
    private void loadImages()
    String path = "images/duke/";
    String ext = ".gif";
    images = new Image[10];
    for(int i = 0; i < images.length; i++)
    try
    URL url = getClass().getResource(path + "T" + (i + 1) + ext);
    images[i] = ImageIO.read(url);
    catch(MalformedURLException mue)
    System.out.println("Bad URL: " + mue.getMessage());
    catch(IOException ioe)
    System.out.println("Unable to read: " + ioe.getMessage());
    private void initializeGameMap(int w, int h)
    rects = new Rectangle[images.length];
    int imageWidth = images[0].getWidth(this);
    int imageHeight = images[0].getHeight(this);
    int cols = (w - 2*PAD) / imageWidth;
    int xInc = imageWidth + (w - cols * imageWidth) / (cols + 1);
    int x0 = (w - cols * imageWidth -
    (cols - 1) * ((w - cols * imageWidth) / (cols + 1))) / 2;
    for(int i = 0; i < images.length; i++)
    int x = x0 + xInc * (i % cols);
    int rows = i / cols;
    int y = PAD + (imageHeight + PAD) * rows;
    rects[i] = new Rectangle(x, y, imageWidth, imageHeight);
    firstTime = false;

  • Signed Applet problems

    Hi all,
    I have a problem with one applet. I just built an applet (JDK 1.2) to download a file to the local machine; so far is OK, I got my digital certificate and I have signed the applet. Now when I test it in IE 5.x or 6.x it shows me the certificate and of course I trust, so it writes to the local hard drive, but when I try to test in Netscape 4.7 or greater; it shows me the certificate, I choose the "Trusted option" but I got the error:
    access denied (java.io.FilePermission c:\mwSave.dll write)
    I don't have any idea why if my applet is already signed and the certificate is valid I am getting this error... I am using a signed applet to do not use the policy file.... and should work, well I think that....
    Any ideas....
    Thanks in advance.

    I have exatly the same problem but not with the class itself. I have the problem with an jar that my class calls.
    I use jdk1.4.2. I think it's basicaly the same problem as "lfpgMW".
    I'll also whould like an idea...
    thanks

  • EEM Applet Problem With: event syslog pattern ".*" priority 2

    I went to create a EEM applet that would be invoked whenever any syslog message of priority 0-2 was invoked. I figured  the following event statement would work
           event syslog pattern ".*" priority 2
    I never really used the priority optional argument before but thought I understood from the docs that messages at or numerically lower than the specified level are matched.
    Well it doesn't seem to work as documented.  Seems to me that only messages at the specified level are beng matched and not messages numerically lower than the specified level.
    Anyway I did what I wanted differently but wanted to post this in case this is a bug in the syslog ed.

    Actually, it's a problem with the documentation.  The priority option only matches the specified severity.  What you could do is adjust pattern to do this:
    event syslog pattern "*-[012]-"

  • Applet problem with FileWriter() (security problem?)

    btBut1.addActionListener(new ActionListener()
       public void actionPerformed(ActionEvent e)
           FilePermission perm = new FilePermission("<<ALL FILES>>" , "write");
          try {
                FileWriter outputStream = null;
                outputStream = new FileWriter("./bandiere/testouno.txt");
           catch (IOException eX) {
       });This is a bit of code from an APPLET which I'm working on. The code does not work...
    I smell it is a security problem, but I'm not sure...

    You are trying to write to the local file system which is not allowed unless the applet is signed.
    Unless you think you are trying to write to the server, in which case, you can't do that with FileWriters. You'd have to make a connection to the server via a socket or URLConnection or something to pass the data over.

  • Multiple applets problem

    Hi,
    I have applet, which operates some device. It's fine as far as I want to open second applet (in fact the same applet but in new window). The problem is with Internet Explorer, because it uses the first applet window to open the second applet. So in fact it thinks that the first window is same as the second one which I want to open, so simply reloads the content of the window and the first one's content disappears. How can I open that second one in new "applet window"?
    In Firefox it is OK.
    Thanks
    A. J.

    Hi,
    Did you find something to solve your problem because I have exactly the same.
    Tony

  • Oracle App Server - Applet problem (HELP)

    I have a problem with accessing an applet in placed in a sub directory from the webroot. Basically, I can run an applet successfully in my webroot. When the same applet is placed in a sub dir in the webroot, OAS can't resolve the path and can't find the class file. Here's how I specified my applet:
    <applet code=com.helloapplet width=200 height=50>
    The helloapplet.class is in the "com" package and placed in the "com" dir under the webroot.
    I tried this also:
    <applet code="helloapplet.class" CODEBASE="com" width=200 height=50>
    both with the helloapplet.class as part of the "com" package and with it as part of the default package in the "com" dir.
    Anyideas greatly appreciated. Thanks.
    null

    Try the following:
    Move the RMI classes to applib directory instead of encapsulating it in the application. This will ensure that the classes are seen across applications so that whoever activates the RMI registry will not be the only one who can see the RMI classes, but other apps that needed to bind their own classes can see them as well.
    Alternatively, you can add this in application.xml:
    <library path="<rmi class directory"/>
    or
    <library path="<jar file that contains rmi classes (ex. rmiclass.jar)>"/>

  • Signed applet : problem signing jar files that are in build path

    Hello,
    I have a problem while trying to create an ftp applet.
    I use org.apache.commons.net.ftp and i build path for commons-net-1.1.4.jar and then i build my classes.
    When i create a jar file with my classes and after signing it, it works under eclipse but not on a web page.
    I had signed commons-net-1.1.4.jar before to build the path in eclipse but commons-net-1.1.4.jar is not in my jar file.
    What is the way to sign applet correctly even if some jar ressources are in eclipse build path.
    Thank you

    You were right!!!
    I'm not sure what to write down in the formsweb.cfg (configuration file) , following the instructions on the on-line help of Developer Forms 10g , in step 9..
    The step 9 says...
    Because in this release the JACOB code is in an external Jar file and not incorporated into frmwebutil.jar, it needs to be downloaded. To do this, change the WebUtilArchive setting to read: webUtilArchive=/forms/webutil/frmwebutil.jar,/forms/webutil/jacob.jar
    The doudt is pointed to the fact that the frmwebutil.jar isn't in the ORACLE_HOME\forms\webutil path but it is ORACLE_HOME\forms\java path.
    Also , these paths referenced in webUtilArchive are physical paths in a Unix system or they are logical paths in a url?
    Simon

  • Servlet/applet problem

    hi guys
    my problem is that, i started my tomcat server, also my servlet. this servlet should call an applet. so here are my questions:
    where must be the applet class file?
    how looks like my codebase?
    what code must i type into the servlet? something special?
    do i need an apache server additional?
    yes? where must be my files? :)
    hope anyone can help me...
    bye

    keep the applet class file in the home directory, the directory in which your index.html lies, index.html -- the html which shows up when you say http://localhost:8080
    and then give the applet description like this in the servlet
    out.println("<applet code=\"myApplet.class\" codebase=\"http://localhost:8080\" width=\"400\" height=\"400\"> ");
    out.println("</applet>");
    and that should work and you will be good to go

  • [SOLVED] Network Manager / nm-applet problems on fresh installation

    I have just carried out a fresh re-installation of Arch on my old netbook, following a self-inflicted crash!
    Previously, networking worked perfectly, but since the new installation, nm-applet is behaving strangely.
    All connections (wired and wireless) seem to work OK, but when connected wirelessly, the nm-applet constantly shows the "searching" icon, and hovering over it, the message "Requesting a Wi-Fi network address for '<wlan name>'" is displayed. The Network Connections screen says that the Wi-Fi connections has never been used, despite the fact that it works!
    I have tried re-configuring the connections, disabling IPV6 (this stops everything working) and completely uninstalling/re-installing Network Manager and nm-applet, but all without success.
    I would be very grateful fo any ideas of how to tackle this problem
    Many thanks in advance.
    Last edited by myrlin (2014-08-20 19:42:44)

    I have fixed the wpa_supplicant problem (changed the .conf file), but the problem still persists. I have even carried out a full re-installation in case I did something stupid.
    Nnmtui shows "connecting" permanently, and nm-applet shows  "Requesting a Wi-Fi network address for '<wlan name>'" with the cycling connecting icon.
    Despite this, the wireless connection seems to work!
    Can anyone suggest what else to try?

  • SSL Load Balancing (Java applets problem)

    Hi,
    I have implemented loadbalancing of two webservers using CSS 11503.
    Servers are containing SSL pages which need to be loadbalanced.
    I have tried configuring the content rule for ssl using
    port 443
    application ssl
    advanced-balance ssl
    commands.The site opens properly using the VIP address (checked the SSL certificate issued by one of the servers. ) and I am able to see all the TABS on the same.The real problem starts when I am trying to upload a file to the server using the VIP address.
    The moment I try to upload a file the session shifts to the second server and prompts for new certificate issued by the second server.
    One more thing which I would like to mention here is that while uploading the file, JAVA is used.
    i.e.the files are being uploaded using JAVA applets.
    If anybody has encountered this kind of problem kindly suggest on the same.
    Would appreciate if you send the solution on [email protected]
    Any configs needed plz contact me on the above e-mail ID.
    Thanks,
    Pankaj P.

    HI Pankaj,
    depending on your Java applett it might be possible that the applett opens a new connection. therefore depending on your total configuration it might be possible taht another server is used.Even worse if you do SSL-offloading the applett might tell the user to do http instead of https. I suggest that you check with a sniffertrace what is happening:
    1) is there a new connection setup while the applett runs
    2) is it again http or https and if https is it a new https session which will be again balanced not depending on the original https session.
    Hope that helps
    regards,
    Joerg

  • Applet problem in JSP

    Hi,
    I display an Applet from a jsp with this code :
              <jsp:plugin type="applet" code="client/ui/ClientApplet.class"
                   archive="Client.jar" name="LeHall"
                   height="100%" width="100%">
    It works perfectly in Internet Explorer,
    But not in Mozilla :
    It asks me to install a plugin : and there it searches for a plugin,
    then it says that it can't find one.
    I tested the same applet in PHP pages on the same computer,
    it works in Internet Explroer and in Mozilla too, without the need of a plugin for Mozilla,
    Could someone Help me with this please ???

    This isn't a "problem" so much as a different interpretation of what "height" represents. "Height" in the context of Mozilla is the height of the rendered document, not the height of the window.
    For example, if your page only has one line of text, then the "height" of your document would be that one line.
    To play with this idea even further, let's assume your document is so long, that it extends past the viewing area (i.e. you have a scroll bar on the side). If you specify a height of 100%, theoretically Mozilla would assume the entire height of the document. What would IE do?

  • SQL Server 2000 - JDBC + Java Applet problem

    Hai
    I have some problem connecting my SQL server database with Java.
    I use Applet to make my interface.
    I use Windows 2000 server.
    Here is my program listing :
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.event.*;
    import java.sql.*;
    public class VLookup extends JApplet {
    String database = "jdbc:odbc:Driver={SQL Server};SERVER=Windows2000;uid=sa;pwd=;Database=User-Phone Database";
    String user = "sa";
    String password = "";
    Statement s;
    Connection c;
    JTextField searchFor = new JTextField(10);
    JLabel completion = new JLabel(" ");
    JTextArea results = new JTextArea(40, 20);
    public void init() {
    searchFor.getDocument().addDocumentListener(new SearchL());
    JPanel p = new JPanel();
    p.add(new Label("ID to search for :"));
    p.add(searchFor);
    p.add(completion);
    Container cp = getContentPane();
    cp.setLayout(new BorderLayout());
    cp.add(p, BorderLayout.NORTH);
    cp.add(results, BorderLayout.CENTER);
    try {
    Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
    c = DriverManager.getConnection(database, user, password);
    s = c.createStatement();
    } catch(Exception e) {
    results.setText(e.getMessage());
    class SearchL implements DocumentListener {
    public void changedUpdate(DocumentEvent e){}
    public void insertUpdate(DocumentEvent e){
    textValueChanged();
    public void removeUpdate(DocumentEvent e){
    textValueChanged();
    public void textValueChanged() {
    ResultSet r;
    if(searchFor.getText().length() == 0) {
    completion.setText("");
    results.setText("");
    return;
    try {
    r = s.executeQuery("SELECT " + "Tipe " + "FROM " + "Time " + "WHERE " + "(Tipe Like '" + searchFor.getText() + "%') "
    + "GROUP BY " + "Tipe " + "ORDER BY " + "Tipe " );
    if(r.next())
    completion.setText(r.getString("Tipe"));
    r = s.executeQuery("SELECT " + "ID_Pengguna, Phone_Number, Tipe " + "FROM " + "Time "
    + "WHERE " + "(Tipe ='" + completion.getText() + "') "
    + "GROUP BY " + "ID_Pengguna, Phone_Number, Tipe "
    + "ORDER BY " + "ID_Pengguna, Phone_Number " );
    } catch(Exception e) {
    results.setText(searchFor.getText() + "\n");
    results.append(e.getMessage());
    return;
    results.setText("");
    try {
    while(r.next()) {
    results.append(r.getString("ID_Pengguna") + ", " + r.getString("Phone_Number") + ", " + r.getString("Tipe") + "\n");
    } catch(Exception e) {
    results.setText(e.getMessage());
    public static void main(String[] args) {
    JApplet applet = new VLookup();
    JFrame frame = new JFrame("User ID");
    frame.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e){
    System.exit(0);
    frame.add(applet);
    frame.setSize(500, 200);
    applet.init();
    applet.start();
    frame.setVisible(true);
    } ///:~
    And java catch error like this : access denied (java.lang.RuntimePermission access ClassInPackage.sun.jdbc.odbc)
    What is wrong ??
    Is there any problem with my DNS ? 'cos I don't know how to set up my DNS.
    Can u help my with this problem ??
    Thank's

    You need to read up on what applets are capable of. Applets generally cannot open connections to things like databases due to sandboxing. There are a couple of ways to get around this. The applet can connect to a servlet on the same machine from which it came and have the servlet do the database accesses. Alternately, you can create a signed applet which allows you to get around some of these sandboxing issues.If tried to make localhost on my computer ( by setting my IIS configuration setting, and using Configure SQL XML Support in IIS I've created a new http://localhost/skripsi to my SQL database.
    Is there any command that I have to add to my program listing so the applet can work as I wish ??
    Is there any way to use applet to connect my database withaout using servlet, and can u explain siggned applet to mey ??
    Sorry, I don't really know java very well.
    driver type 4 ??

Maybe you are looking for

  • My iPhone 6 is currently completely un-useable

    Hi, I have an iPhone 6 and I've been enjoying very much since I got it, its been running 8.1 very smoothly. Until today, I plugged in my iPhone to sync to iTunes and I created a back up on my computer because I hadn't backed it up in a while, then I

  • Mesage Adobe Dreamweaver CC has stopped working

    I am on Windows 7.  Other apps like Adobe illustrator or fireworks open fine.  My Dreamweaver icon on Creative Cloud app list, had an update, which said windows 8 only.  I just ran a complet update of creative cloud app itself, no problems.  Previous

  • Printing from Quicken 2003 delux

    I just got the HP Officejet 6500 wireless. When I try to print checks from Quicken 2003 delux program, they are often in colors other than black or don't print at all with the error message about paper size anyone have any ideas what I am missing? Pr

  • [SOLVED][g++] Strange behaviour within loops

    Hello I've recently installed Arch64 on lappy. It will be used mostly for programming, therefore that's the thing which really makes me anxious: namely, loops doesn't work as they should. They seem to be skipping one iteration. As far as I have inves

  • SCCM- software reporting

    Hi All, I know that there is a report in SCCM 2007 R2 that tells us for what duration a particular executable was running.Can any body tell me what specifically that report is? Rgs,