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 7802851
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:22:57+00:00 2026-06-02T01:22:57+00:00

I displayed webpage on JEditorPane, but it is getting message as Your web browser

  • 0

I displayed webpage on JEditorPane, but it is getting message as “Your web browser must have JavaScript enabled in order for this application to display correctly.“

enter image description here

Below is code

import java.io.IOException;

import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JScrollPane;

public class EricPage {

    public EricPage() {
    }

    public static void main(String[] args) {

         JEditorPane jep = new JEditorPane();
         jep.setEditable(false);   

         try {
           jep.setPage("http://corp.netsapiens.com");
         }
         catch (IOException e) {
           jep.setContentType("text/html");
           jep.setText("<html>Could not load Web Site");
         } 

         JScrollPane scrollPane = new JScrollPane(jep);     
         JFrame f = new JFrame("Display WebPage");
         // Next line requires Java 1.3
         f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         f.getContentPane().add(scrollPane);
         f.setSize(512, 342);
         f.show();
}
}

Please let me know how to resolve

  • 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-06-02T01:22:58+00:00Added an answer on June 2, 2026 at 1:22 am

    JEditorPane renders only basic HTML and CSS (HTML 3.2). It does not support JavaScript. See HTMLEditorKit for details.

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

Sidebar

Related Questions

I have a simple Web Browser Control that displays a local webpage and that
I have been trying to get the links on this webpage to be displayed
I have this webpage that uses client-side JavaScript to format data on the page
I have an address that is going to be displayed on a webpage, but
I have a webpage that displays a very large list of data. Since this
I've a JEditorPane inside a JDialog. I'm loading a web page when this JDialog
I have a webpage that has to be displayed in several different languages based
I have a webpage thats created by javascript injections and one of my pages
i have a webpage that used to be displayed correctly at the latest versions
I have a simple webpage with only 3 links displayed in my webbrowser component:

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.