Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

HTML Viewer in Java

Posted on 1998-03-24
3
Medium Priority
?
456 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 400 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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses

618 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