Solved

Browser in Applet

Posted on 2004-05-03
11
367 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +2
11 Comments
 
LVL 13

Expert Comment

by:Webstorm
ID: 10977243
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
ID: 10977736
0
 
LVL 30

Expert Comment

by:Mayank S
ID: 10978346
What exactly do you mean by browser *inside* an Applet ;-) Ideally, the Applet should be in a browser :-)
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
LVL 30

Expert Comment

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

Expert Comment

by:GrandSchtroumpf
ID: 10980703
you can simply use a JEditorPane with an HtmlEditorKit.  that's if you don't need much functionalities.
0
 
LVL 5

Author Comment

by:avya2k
ID: 10992872
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
ID: 10992874
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:Mayank S
ID: 10992925
0
 
LVL 7

Accepted Solution

by:
maheshexp earned 250 total points
ID: 10993096
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
ID: 10993313
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
ID: 10994057
>>Is there any way to quick show the page properly all contents
JEditorPane don't have full features like any browser...
0

Featured Post

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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

617 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