• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet viewer not working

 
Apoorv Singhai
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My Applet viewer is not opening . I dont know why. I think my code is also correct. I have posted a video showing my problem.

Java code
import java.awt.*;
import java.applet.*;
import java.awt.event.*;

class test extends Applet
{
public void paint(Graphics g)
{
g.drawString("Hello",100,150);
}

}

Html code
<applet code=test.class width=200 height=200
</applet>


Its just not opening.
 
Paweł Baczyński
Bartender
Posts: 1876
35
Firefox Browser IntelliJ IDE Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What browser do you use?
Is it Google Chrome?
 
Apoorv Singhai
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ya its google chrome.
 
Tony Docherty
Bartender
Posts: 3054
59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure you read the link Pawel posted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic