[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] typo in JSCTextView



uhhh there was an issue that made me use JTextPane and not JEditorPane, a serious one.... if only remembered. however JTextPane is a subclass of JEditorPane, so basically the RTF kit should work. i will try it out... (looking now at  http://www.java2s.com/Code/Java/Swing-JFC/ViewingRTFformat.htm )


Am 21.12.2009 um 19:53 schrieb ronald kuivila:

> Hi Sciss,
> 
> I sent a copy of the current state of SwingDocument to the email address on your WWW page.
> I have never used Eclipse and cannot work out how to add ant-contrib (on OS X) as in Preferences-Ant-runtime
> the add JAR button is disabled).  Any hints?
> 
> But I took a look at the code for TextView and am wondering, why are you using a JTextPane instead of JEditorPane?
> Seems like changing to the class should provide RTF support for free...
> 
> RJK
> 
> 
> On Dec 21, 2009, at 2:12 PM, Sciss wrote:
> 
>> hmmm, you are right, i've never seen this before. will need to investigate. keep me up to date with the document class, sounds cool!
>> 
>> Am 19.12.2009 um 20:24 schrieb ronald kuivila:
>> 
>>> Hi again,
>>> 
>>> Another curio:
>>> 
>>> 	For HTML files JSCTextView.string returns the string doubled (i.e.,
>>> concatenated with itself).  But everything else (selectAll, for example) are working correctly.
>>> 
>>> RJK
>>> 
>>> PS: I am working up a SwingDocument class, implementing menu commands (search and replace, opening files, etc)
>>> as methods of the class.  I think this will make using Swing for remote control easier.
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> sc-dev mailing list
>>> 
>>> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
>>> archive: https://listarc.bham.ac.uk/marchives/sc-dev/
>>> search: https://listarc.bham.ac.uk/lists/sc-dev/search/
>> 
>> 
>> _______________________________________________
>> sc-dev mailing list
>> 
>> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
>> archive: https://listarc.bham.ac.uk/marchives/sc-dev/
>> search: https://listarc.bham.ac.uk/lists/sc-dev/search/
>> 
> 
> 
> _______________________________________________
> sc-dev mailing list
> 
> info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
> archive: https://listarc.bham.ac.uk/marchives/sc-dev/
> search: https://listarc.bham.ac.uk/lists/sc-dev/search/


_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/