Solved

Browser in Applet

Posted on 2004-05-03
11
362 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 99
maven project error 5 56
tomcat not starting 6 47
How to determine if a string is a valid SHA value 7 34
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

831 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