Solved

web browser control in java

Posted on 2003-11-23
12
307 Views
Last Modified: 2012-08-13
hi
how Can I add web browser control to my java applet program.
0
Comment
Question by:hansol1
  • 6
  • 3
  • 2
12 Comments
 
LVL 35

Expert Comment

by:girionis
ID: 9809210
 What exactly do you mean? I think you need to use JNI but if you be more specific we might be able to help you more.
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9809607
You can use a JEditorPane, and set its contentType to text/html
0
 

Author Comment

by:hansol1
ID: 9810481
hi tim
can u give me any link to use this editor.I will use it in place of text area.
Actually wat my need is ,to format text font,give so link.when user will click on tbat link ,link will open in a browser window.
If u have any idead for vc++ ,than U can see there webbrowser control.I just want to use the control like that.
thanks
Bye
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 35

Expert Comment

by:TimYates
ID: 9810621
0
 

Author Comment

by:hansol1
ID: 9816077
hi
JEditorPane is for java swing.wat will I use in case of applet.I try with EditorPane but it give error.
thx
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9816627
If you are not using Swing, there is nothing you can do :-(

AWT didn't support HTML
0
 

Author Comment

by:hansol1
ID: 9823692
Hello
just you vist
pc1click.com/live.html.
after filling the form it will open the applet.link is
http://209.25.154.82/livepcsupport-org/pc1click/livepersonconnect.html
here,the control is using by the application,the same control I have to use .If it is Text area then how i give link in a sentence and all other functionality.
Please help
Thax
0
 
LVL 35

Accepted Solution

by:
TimYates earned 50 total points
ID: 9823708
That's not a java applet...

That's an IFRAME, if you look at the HTML source code for the page, it is:

<!--Begin LivePerson Chat Window Embed-->
                        <iframe src="http://server.iad.liveperson.net/hc/77386065/?cmd=file&file=visitorWantsToChat&site=77386065&special=bgcolor:B7CAD8,
chatImage:http://209.25.154.82/livepcsupport-org/pc1click/images/dude1.gif,
style:embedded" width="472" height="320" scrolling="no" frameborder="0"><font color="#FFFFFF"></font></iframe>
                        <!--End LivePerson Chat Window Embed -->

So that is just a native HTML way of doing things...

Tim
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9823717
They have embedded an HTML page inside another HTML page to look like a an interactive applet/ocx/flash thing

but it is just HTML...

Quite cool though :-)
0
 
LVL 35

Expert Comment

by:TimYates
ID: 9929374
Hope this helped :-)
0
 
LVL 35

Expert Comment

by:girionis
ID: 9940393
 I agree with your suggestion, points to Tim.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
firstswap challenge 20 77
starter POM and spring-boot-starter,  spring-boot-web 2 53
Java Server Faces parameter pass? 6 48
how to install java on RHEL image on EC2 4 26
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This video teaches viewers about errors in exception handling.

815 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

8 Experts available now in Live!

Get 1:1 Help Now