Solved

HTML Viewer in Java

Posted on 1998-03-24
3
409 Views
Last Modified: 2008-03-10
I have a String of text formatted with HTML tags. I am trying to display this text in my Java application the way it would look if displayed in the browser. That is I am looking for an HTML viewer/editor component.

Swing seems to have an HTML editor but I can't quite figure out how to use it.  I would appreciate if someone could  present a code which takes an html string and displays it with all the HTML formatting on the screen in some kind of text area using HTMLEditorKit from Swing or some other component.
0
Comment
Question by:msmolyak
  • 2
3 Comments
 
LVL 5

Author Comment

by:msmolyak
Comment Utility
Edited text of question
0
 
LVL 6

Accepted Solution

by:
jpk041897 earned 200 total points
Comment Utility
Take a look at:

http://www.geocities.com/SiliconValley/Way/7979/html.html

it contains a free Java based (applet) web browser that you could easily port to your needs.

If you need a complete browser/editor solution you are going to have to purchase it.

There is a good comertial browser/editor class at:

http://www.opencube.com/dev_index.htm

Hope this helps
0
 
LVL 5

Author Comment

by:msmolyak
Comment Utility
Thanks for the pointers. I ended up using the HotJava HTML component from Sun.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

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)
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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:
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

772 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