Article View: borland.public.jbuilder.java.language
Article #15467RTF and clipboard
From: Monica
Date: Tue, 15 Jun 1999 00:00
Date: Tue, 15 Jun 1999 00:00
23 lines
1141 bytes
1141 bytes
Hi :o)
I have a java program witch uses the RTFEditorKit. When I copy text from
this program to the clipboard it seems to copy it as plane text and not
rtf. Must the clipboard be set to read rtf? If yes, how ?
To illustrate:
TextPane.setContentType("text/rtf");
v_kit = new RTFEditorKit();
TextPane.setEditorKit(v_kit);
v_context = new StyleContext();
v_doc = new DefaultStyledDocument(v_context);
TextPane.setDocument(v_doc);
Then to copy, cut and paste I use:
TextPane.copy();
TextPane.cut();
TextPane.paste();
I hope that someone can help me.
Monica :oD
A Norwegian IT-student
Technical Details
Message-ID:
<37664F98.D0C89EDA@ifi.ntnu.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,289370c9eaf9069c,start X-Google-Attributes: gidf74b3,public From: Monica <oshea@ifi.ntnu.no> Subject: RTF and clipboard Date: 1999/06/15 Message-ID: <37664F98.D0C89EDA@ifi.ntnu.no> X-Deja-AN: 489837318 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language