----- Original Message -----
From: "Roger Lacroix" <[EMAIL PROTECTED]>
To: "jdjlist" <[EMAIL PROTECTED]>
Sent: Wednesday, March 12, 2003 5:54 AM
Subject: [jdjlist] Swing problem - JEditorPane() and JTextArea()


> All:
>
> This is driving me crazy.  I have tried JEditorPane() but it is even
> slower.  I have tried JTextArea with setLineWrap(true), it helps but it
> still really slow.
>
> Does anyone have any suggests?  All I need is a basic editing
> component.  Nothing fancy.  But has to be able to handle super long lines
> or where the data has NO CRLF at all.  i.e. 2MB of data with no CRLF
2 basic ideas/solutions :
a) the obvious one:
use a (Java or C) function that splits up the data to a set of suitable CRLF
segmented lines ;
these are copied into the editor and converted to the old format after
editing has been done by the user.

b) a "weird" idea :
since you just need a *basic* editing component, write your own one (if you
have time and/or "fun" with it)
or derive one from those books that show basic GUI concepts with hand-coded
texteditor examples.
(e.g. the one I've got from from "M.......Press")
I myself started some hand-coded Java editors e.g. at
http://uuhome.de/penski/display.htm (single-line mode only by now)

sincerely,
U. Penski
[EMAIL PROTECTED]



---
You are currently subscribed to jdjlist as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
http://www.sys-con.com/fusetalk

Reply via email to