• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 376
  • Last Modified:

Browser in Applet

I have an Applet
and i want to show a browser inside Applet
is there any way to do the same?
0
avya2k
Asked:
avya2k
  • 3
  • 3
  • 2
  • +2
1 Solution
 
WebstormCommented:
Hi avya2k,

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

0
 
maheshexpCommented:
0
 
Mayank SAssociate Director - Product EngineeringCommented:
What exactly do you mean by browser *inside* an Applet ;-) Ideally, the Applet should be in a browser :-)
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
GrandSchtroumpfCommented:
you can also use HotJava:
http://java.sun.com/products/hotjava/3.0/
0
 
GrandSchtroumpfCommented:
you can simply use a JEditorPane with an HtmlEditorKit.  that's if you don't need much functionalities.
0
 
avya2kAuthor Commented:
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
 
avya2kAuthor Commented:
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
 
Mayank SAssociate Director - Product EngineeringCommented:
0
 
maheshexpCommented:
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
 
avya2kAuthor Commented:
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
 
maheshexpCommented:
>>Is there any way to quick show the page properly all contents
JEditorPane don't have full features like any browser...
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now