Solved

Browser in Applet

Posted on 2004-05-03
11
364 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
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!

 
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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…

756 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