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

  • Home
  • SEARCH
  • 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 527723
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:54:47+00:00 2026-05-13T08:54:47+00:00

How do I get a webpage to open up in a frame? (I’m using

  • 0

How do I get a webpage to open up in a frame?

(I’m using netbeans and java)

e.g in a html page you can use

  <frame src="http://www.google.com">

and it will display google in the frame.

I don’t want it to open a browser, just to open up within the frame. How can I do that?

  • 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-13T08:54:48+00:00Added an answer on May 13, 2026 at 8:54 am

    Here is a quick example of how to load google with the JEditorPane. I hope this is what you are looking for, but I’m still not 100% sure what exactly you want. If you could provide a bit more information about what you are doing I would be able to help you more.

    import javax.swing.*;
    
    public class GetWebPage {
        public static void main(String args[]) throws Exception {
            JEditorPane website = new JEditorPane("http://www.google.com/");
            website.setEditable(false);
    
            JFrame frame = new JFrame("Google");
            frame.add(new JScrollPane(website));
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setVisible(true);
            frame.pack();
        }
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can an Ajax script access different website's webpage? for example i tried following xmlhttprequestobj.open(GET,google.com,true);
I am using hjavascript:void window.open(' http://www.microsoft.com ') to open the link in a new
i get the webpage content from an external website using ajax but now i
I am trying to get a webpage to parse using the following code. <var-def
i am try to get all links from webpage with Html Agility Pack, after
I need to get webpage's content ,I cant use Curl as it is not
<html> <body> <SCRIPT type=text/javascript> var xmlHttp = new XMLHttpRequest(); var async = true; xmlHttp.open(GET,
I want to make a basic Zend_Http_Client request, to open a webpage, and get
i have the following javascript in my webpage: var xhr = new XMLHttpRequest(); xhr.open('GET',
I'm using the following function to get a JSON Array from a php webpage.

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.