Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4723383
Votes 78
Synopsis Incomplete RTF support in javax.swing.text.rtf.RTFEditorKit
Category java:classes_swing
Reported Against 1.4
Release Fixed
State 5-Cause Known, bug
Priority: 4-Low
Related Bugs
Submit Date 31-JUL-2002
Description


FULL PRODUCT VERSION :
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)

FULL OPERATING SYSTEM VERSION :  customer  Windows 2000
[Version 5.00.2195]


A DESCRIPTION OF THE PROBLEM :
The javax.swing.JEditorPane is supposed to handle rtf
documents through the usage of
javax.swing.text.rtf.RTFEditorKit , however the JEditorPane
documentation mentions that support for rtf is limited,
also the RTFEditorKit documentation says that this class
wasn't written by the swing team. I have found a bug
(4261277) dating Aug 10, 1999 which addressed the same
issue and was closed as "will not fix" the reason
was "We're not likely to get to it any time soon, and thus
I'm closing
this out as will not fix.
" !!

REPRODUCIBILITY :
This bug can be reproduced always.
(Review ID: 153726) 
======================================================================
Posted Date : 2006-06-08 16:33:05.0
Work Around
N/A
Evaluation
There are at least two set of problems that need to be solved before
this bug can be resolved.

1. Resource limitations. There are many higher priority bugs and given the
resources we have right now it is not likely we get to this bug any
time soon.

There are a lot of other bugs which need to be fixed before we can get decent
RTF rendering. Even if the work on this RTF bug starts today the rendering will
have some problems until those bugs are resolved. Swing-text implementation has
multiple layers :
                core
    plain text       styled text
                   html        rtf

Bugs in 'core' or 'styled text' most likely going to affect RTF too. Because of
that they have higher priority. It seems there are much more use cases for html
than for RTF because of that html bugs have higher priority. 

2. What RTF standard to support. With what product we want to be
compatible.

There is a way to contribute fixes to jdk trough
Java Development Kit Community Projects
https://jdk.dev.java.net/

Everyone is welcome to participate.
Posted Date : 2006-06-08 22:49:10.0
Comments
  
  Include a link with my name & email   

Submitted On 13-SEP-2002
mdunstan
This is of enormous importance...

If Sun won't correctly implement RTF at least provide an 
alternative like enabling DefaultStyledDocument to be saved 
in XML format. That way files can be parsed to replace 
dynamic text (readable in text editor). 

This is a serious gap in functionality for working with 
enterprises in the B to B space. Perhaps the only real gap.


Submitted On 14-SEP-2002
werewolf_jt
please don't leave us hanging with this bug.  i may have 
found a workaround for it by manually parsing the document 
and replacing placeholders with actual documents, but this 
really pretty much destroys the beauty of working with actual 
images.

i hope its not too much to ask.  IMO, its destroying all other 
gui's i've created and will be creating.


Submitted On 06-JUL-2004
biks2
please solve...........


Submitted On 06-DEC-2004
rjvromans
Any idea of the progress solving this?
I really need support for implementing tables and images.


Submitted On 10-DEC-2004
jcsprowls
Wow! An implementation would be REALLY nice!
...images would NICE... :)


Submitted On 10-DEC-2004
jcsprowls
Wow! An implementation would be REALLY nice!
...images would NICE... :)


Submitted On 22-SEP-2005
This bug is the deciding factor between our choosing .NET over Java/Swing.


Submitted On 15-NOV-2005
RTF is very important to many people.  Perhaps we could allocate at least some resources toward this, even if it is only a few hours a week.


Submitted On 15-APR-2006
wandreyalves
More points to Bill Gates


Submitted On 15-APR-2006
wandreyalves
Open Office and C++ will help us


Submitted On 12-OCT-2007
I disagree with those that want everything in RTF.
- RTF has no agreed standard and many implementations. Swing supports only the common subset.
- Don't assume that RTF means only what Microsoft Word or even Wordpad supports (but it's true that the WordPad RTF support is certainly the minimum to have, and having at least this support would help because other non-Microsoft implementations are also supporting this minimum).
- There's no standard in RTF for handling images and tables. If you need them, use HTML instead.


Submitted On 07-MAY-2009
adamH1
I have posted another bug about this issue it seems to me that sun is not willing to do anything about this. 

RTF is really basic and I think sun should take this in concern. Its true when people say this can be the deciding factor between net and java.

I don't think sun has understood our request really its not only the rtf support we are asking for but any format that will actually handle rich text content.

Started 1999-2009 thats ten years of development and none really working format. So I think Sun will have to lose some developers before they realize its worth implementing.



PLEASE NOTE: JDK6 is formerly known as Project Mustang