The Artima Developer Community
Sponsored Link

Java Answers Forum
How to overcome this

2 replies on 1 page. Most recent reply: Apr 1, 2002 8:14 PM by Swaraj

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Swaraj

Posts: 24
Nickname: swaraj
Registered: Mar, 2002

How to overcome this Posted: Apr 1, 2002 2:22 AM
Reply to this message Reply
Advertisement
Hi All
I am writing an applet based text editor, based on RTF Editorkit, i have got this pecular error when doing executing this statement.

rtf.read(fileInputStream1,ep.getDocument(),0)
Where rtf is my RTFEditorKit instance.
ep is my JTextPane
and fileInputStream1 is the fileInputStream which i am using

The above line of code threw me an IOException saying the below
'Too many close-groups in RTF text'

I am unable to understand what could be the source of this error, or may be what will trigger this particular error.

Please help
Swaraj


Singh M.

Posts: 154
Nickname: ms
Registered: Mar, 2002

Re: How to overcome this Posted: Apr 1, 2002 2:29 AM
Reply to this message Reply
have a look at this piece of code, it might be of some help....

http://www.memoire.com/guillaume-desnoix/alma/api/Source-javax.swing.text.rtf.RTFParser.java.html

Swaraj

Posts: 24
Nickname: swaraj
Registered: Mar, 2002

Re: How to overcome this Posted: Apr 1, 2002 8:14 PM
Reply to this message Reply
Thanks Singh

But i have already gone through that piece of code before putting my query onto the forum, Is there any valid reason for such a thing to happen.

Please help
Swaraj

Flat View: This topic has 2 replies on 1 page
Topic: How to generate a random variable ? Previous Topic   Next Topic Topic: Please help

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use