Solved

web browser control in java

Posted on 2003-11-23
12
300 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
 
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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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…

708 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

13 Experts available now in Live!

Get 1:1 Help Now