Solved

Browser in Applet

Posted on 2004-05-03
11
358 Views
Last Modified: 2012-06-27
I have an Applet
and i want to show a browser inside Applet
is there any way to do the same?
0
Comment
Question by:avya2k
  • 3
  • 3
  • 2
  • +2
11 Comments
 
LVL 13

Expert Comment

by:Webstorm
Comment Utility
Hi avya2k,

You can open a new browser window :
  getAppletContext().showDocument(new URl("http://www.google.com"), "_blank")

0
 
LVL 7

Expert Comment

by:maheshexp
Comment Utility
0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
What exactly do you mean by browser *inside* an Applet ;-) Ideally, the Applet should be in a browser :-)
0
 
LVL 30

Expert Comment

by:GrandSchtroumpf
Comment Utility
you can also use HotJava:
http://java.sun.com/products/hotjava/3.0/
0
 
LVL 30

Expert Comment

by:GrandSchtroumpf
Comment Utility
you can simply use a JEditorPane with an HtmlEditorKit.  that's if you don't need much functionalities.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 5

Author Comment

by:avya2k
Comment Utility
Hi maheshexp
I want the same thing as shown in URL
but it is saying that it can open only the same url or site and not any url outside the host as it is not signed

is there any other solution or control to show as browser control or Rich text control with properties simillar to TextField control

0
 
LVL 5

Author Comment

by:avya2k
Comment Utility
Hi maheshexp
I want the same thing as shown in URL
but it is saying that it can open only the same url or site and not any url outside the host as it is not signed

is there any other solution or control to show as browser control or Rich text control with properties simillar to TextField control or TextArea Control

0
 
LVL 30

Expert Comment

by:mayankeagle
Comment Utility
0
 
LVL 7

Accepted Solution

by:
maheshexp earned 250 total points
Comment Utility
take some seconds to load the page

            public static void main(String[] args)throws Exception {
            JEditorPane browser = new JEditorPane("http://www.google.com");
            JFrame f = new JFrame("Browser");
            f.setSize(400,400);
            f.getContentPane().add(browser);
            f.show();
      }
0
 
LVL 5

Author Comment

by:avya2k
Comment Utility
I tried with above example but Rediff.com is show not completely
Is there any way to quick show the page properly all contents

0
 
LVL 7

Expert Comment

by:maheshexp
Comment Utility
>>Is there any way to quick show the page properly all contents
JEditorPane don't have full features like any browser...
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Fibonacci challenge 11 81
json example 39 108
solarwind tftp server 2 29
Responding to Java JComponent extended classes's resize event 4 21
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now