Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6913729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T09:15:18+00:00 2026-05-27T09:15:18+00:00

Okay, so I did a little applet tutorial, and I read that the init()

  • 0

Okay, so I did a little applet tutorial, and I read that the init() method is required for an applet to run. And it does. At least in my IDE (Eclipse). The Applet Viewer has no problems running my applet, when I try to do the <applet> tag in HTML, nothing displays, but it acts as though something is there (text position is altered by the tag). Here is my applet:

import java.awt.*;
import javax.swing.*;

public class Applet extends JApplet{
    public void init(){
        Label label = new Label("Hello!");
        this.add(label);
    }
}

And this is the code I’m using on my webpage:

<applet code="Applet.class" width=100 height=100></applet>

Even if I remove the width/height parameters, I get the same result (it doesn’t display on the page). Yes, the path to the applet is correct and in the same directory. Thank you for your help.

If it helps, this is my DOCTYPE:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Finally, after scouring the console, I found this:

Could not read chrome manifest file '/usr/lib/firefox-8.0/extensions
/{972ce4c6-7e08-4474-a285-3208198ce6fd}/chrome.manifest'.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T09:15:18+00:00Added an answer on May 27, 2026 at 9:15 am

    The applet tag is deprecated and the object tag should be used instead. The applet tag is not supported by some browsers which is probably why you cant see the applet, whereas the object tag should work with pretty much all of them these days.

    Edit: Provide code example::

    <OBJECT codetype="application/java"
            classid="java:Applet.class"
            width="500" height="500">
    My first Java applet.
    </OBJECT>
    

    See this link and this link for further examples and information.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

You read the title and groaned. That's okay. I did too. But we do
Okay, so I'm using perl to read in a file that contains some general
Okay, here's the scenario. I have a utility that processes tons of records, and
Okay, we know that the following two lines are equivalent - (0 == i)
Okay, to give a little background, I learned WPF about 3 years ago and
Okay, I've the strangest problem that I've just started to experience in a grails
Okay, I'm trying to use this method to get my data into R, but
Okay so my situation at work is that I've written about 200 or so
Okay, so I've never had to do anything in VBA where I was REQUIRED
Okay, I'm aware that the standard dictates that a C++ implementation may choose in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.