Solved

HTML Viewer in Java

Posted on 1998-03-24
3
412 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
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

Suggested Solutions

Title # Comments Views Activity
tomcat startup error 5 102
Delete Android all or certain applications data programmatically 9 72
jboss wildfly 10.1 10 228
going to wrong jsp page 2 33
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
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…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

856 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