large transfer object hangs system ... ?

hi all --

Does anyone have experience with gracefully handling large amounts of text pasted into a Swing text component? Java's transferable mechanism seems to choke before it even gets to the TransferHandler. I was thinking it might be possible to transfer it as a native Buffer (java.nio flavor) or a stream, and just ignore everything over 8k, but it looks impossible due to the preemptive choke.

best regards,

Brien

[445 byte] By [8-bitsa] at [2007-11-26 14:52:28]
# 1
This unresolved, closed bug may be relative. It notes a silent fail under certain conditions. http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4319831
ChuckBinga at 2007-7-8 8:40:44 > top of Java-index,Desktop,Core GUI APIs...
# 2

It's sad that Sun thinks this problem is not reproducible or a Windows bug. Somehow Eclipse is able to handle this situation much more gracefully.

Fortunately not many people will actually try to paste 10mb of text into a text box, but it's scary that the situation is completely out of the programmer's control.

8-bitsa at 2007-7-8 8:40:44 > top of Java-index,Desktop,Core GUI APIs...
# 3

Why is it sad that the problem couldn't be reproduced, and so was closed? That's a perfectly logical action to take when the reported problem can't be duplicated, and there is no further input on the error.

If you believe you have found a bug that is not already reported and open, you should submit a new bug report. Not reporting it is "scary" to me.

ChuckBinga at 2007-7-8 8:40:44 > top of Java-index,Desktop,Core GUI APIs...