Solved

RTF Files

Posted on 1998-04-30
1
188 Views
Last Modified: 2010-04-16
Is it possible to, and if so,  how do I read an RTF (rich text format) file into a java application.  I want to do this with the same results as if it were a text file.

Thank you.
0
Comment
Question by:jreilly
1 Comment
 
LVL 1

Accepted Solution

by:
dufort earned 50 total points
ID: 1220299
Use Swing's RTF package. It's in the Swing (JFC) extension of Java, available for free download at Sun (www.sun.com). You have to use JDK 1.1.5 or more.

However, I don't think this package currently support RTF files containing images or embedded objects. It's text only, as fot the HTML package.

0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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
Coding for the first time 9 62
Find out all repos that a user is most active on Github 1 27
Java array 10 55
Java array 21 78
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…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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:

713 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