[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 317
  • Last Modified:

web browser control in java

hi
how Can I add web browser control to my java applet program.
0
hansol1
Asked:
hansol1
  • 6
  • 3
  • 2
1 Solution
 
girionisCommented:
 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
 
TimYatesCommented:
You can use a JEditorPane, and set its contentType to text/html
0
 
hansol1Author Commented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
hansol1Author Commented:
hi
JEditorPane is for java swing.wat will I use in case of applet.I try with EditorPane but it give error.
thx
0
 
TimYatesCommented:
If you are not using Swing, there is nothing you can do :-(

AWT didn't support HTML
0
 
hansol1Author Commented:
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
 
TimYatesCommented:
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
 
TimYatesCommented:
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
 
TimYatesCommented:
Hope this helped :-)
0
 
girionisCommented:
 I agree with your suggestion, points to Tim.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

  • 6
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now