Error running Applet

0

EDITO

The problem was nothing with the browser, nor obsolete nor anything. It was that I had an image as a logo of the program, which appeared on a panel, and they were problems of permissions. As the image appeared in the first panel, it did not finish loading and therefore it remained gray.

END OF EDIT

Good morning. I am trying to run an application that I have made in java from the browser as applet and I can not. If I try to execute it, it seems that it executes it, but it remains in gray, as if it did not load the components, only the applet itself emptied.

The point is that if I execute it from appletviewer of Netbeans it's perfect and it does not give me any problem.

I have tried everything from putting the initComponents() of applet in the method init() , in start() , in both, and there is no way.

However, if I create a new project, I create a applet form , I add two buttons for example, if it goes well in the browser ... Could someone please send me a cable?

I include the beginning of the code in case there is a defect that has passed to me:

public class Vista extends java.applet.Applet{  

/**
 * Initializes the applet Vista.
 */
@Override
public void init() {
    initComponents();

}

@Override
public void start(){
    controladorEmpresa=new ControladorEmpresa(this);
    controladorComercial=new ControladorComercial(this);
    iniciarModels();
    activarPanelPrincipal();
    añadirMenu();
    actionListeners();
}
    
asked by Josuee 24.10.2016 в 19:56
source

1 answer

0

Applets are obsolete and current browsers do not support their execution, if you want to try it you can run it from a Java IDE like NetBeans or Eclipse or you could also download an old version of a browser that supports them.

In this page of oracle it explains from which versions the browsers do not support it and how you could execute them. Oracle Information

    
answered by 24.10.2016 в 23:16