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
Solved

web browser control in java

Posted on 2003-11-23
12
310 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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

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

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…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 …
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

837 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