Solved

HTML Viewer in Java

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Spring Framework HTTPSession management 1 33
ForLoop Example 3 48
more than one jdk and one jre 1 41
Unhandled exception type Exception 18 31
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
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 …

770 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