Solved

HTML Viewer in Java

Posted on 1998-03-24
3
433 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
[X]
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
  • 2
3 Comments
 
LVL 5

Author Comment

by:msmolyak
ID: 1233735
Edited text of question
0
 
LVL 6

Accepted Solution

by:
jpk041897 earned 200 total points
ID: 1233736
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
ID: 1233737
Thanks for the pointers. I ended up using the HotJava HTML component from Sun.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
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 the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

726 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