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();
}