JTextPane Paste

  • Permalink
  • submit to reddit
  • Email
  • Follow

I am just wondering...

Why is that for security reasons, one cannot do Ctrl+V to paste into

People argue that you cannot read user's cb. But i don't need to read
user's clip board. the user will initiate the action.

I can paste into a textarea form control, and most of those forms i
paste into are not signed code???

so, why does JTextPage require signing before someone would just do

I really think this is not a security issue, it's just unintended bug!.
because, if you can paste into a textarea on a webpage, using CTRL + V,
then you should be able to paste into the same JTextPane on the same

Any ideas?

Reply tascienu (12) 4/28/2005 7:20:34 AM

See related articles to this posting

tascienu@ecoaches.com wrote:
> People argue that you cannot read user's cb. But i don't need to read
> user's clip board. the user will initiate the action.

That's wrong. It can, but it must not be user-initiated. An applet can 
contain malicious code which just tries to read the clipboard:


This has to be prevented, so access to the system clipboard is 
controlled by a security manager.

The comp.lang.java.gui FAQ:
Reply Thomas 4/28/2005 9:46:36 AM
comp.lang.java.gui 8292 articles. 14 followers. Post

1 Replies

Similar Articles

[PageSpeed] 53

  • Permalink
  • submit to reddit
  • Email
  • Follow


Similar Artilces:

JTextPane, JEditorPane, copy & paste etc.
I've been playing around with JTextPane and JEditorPane and found a few odd things. At least under Windows and Java 1.5, neither JTextPane or JEditorPane support copying & pasting of formatted text very well. The former doesn't support it at all (even inside the control), and the latter doesn't support it when interacting with other standard Windows controls. I can, if necessary, live without the latter, but the former is definitely needed. But while it seems quite easy to put together a simple app that lets you change the text display style (font, color etc.) for new and ex...

Where does Paste Paste?
In building a new layout one often needs to copy or cut a field or a text box and paste it somewhere else. Is there any logic as to where the pasted item will appear? In some grapfics packages the new paste will be on top of the copied object and can then be moved to the desired place, others seem to paste at the current mouse point. But Filemaker (10) where oh! where. John G. On 2009-09-21 02:41:54 -0700, "John G." <greentest@ozemail.com.au> said: > In building a new layout one often needs to copy or cut a field or a text > box and paste it somewhere else. >...

JTextPane -> JTextPane
I have a window with 2 JTextPanes. I want the user to type into one in full styling (Done) I then want them to hit a send button, or the enter key (Done) And then I want the Styled text to appear in the other with the same styling The only way I can think to do anything close to this is to go through, split the text into each style, send each piece seperately, then redraw it all together.... Help? ...

From the Past. . .
Jim, You'll love the first line of this question to the FM user group. . I am the sole person of a small a/c repair business. For the longest time I have been using Q&A a 'dos' flat file database program. I am trying to update and now have Filemaker Pro 8 Advanced and using it on a pc with winxp sp2. I am trying to set it up so when I get to an address it will lookup the equipment and automatically fill it in the appropriate blocks of the current form. To do this I set up 2 databases - master and equipment. Master has all the blanks (ie, name, address, invoice #, make - mode...

Hi everyone, Let's say that i have some embedded JComponents in a JTextPane, ho do i find out the starting caret position of where the JComponents are currently embedded at? Any help is greatly appreciated Yours Sincerely Richard West ...

Hey Everybody, New to Photoshop CS and a former Paint Shop Pro 9 user. PSP9 had a pasting function that I expected to find in PSCS but don't see. In PSP9, I could copy an image or any portion of an image and then select Edit/Paste as new image and I would have a new cropped image ready for saving or editing. I don't find this function in PSCS where I believe it should be, nor do I find a reference to it in help. Is there a way to do this without creating a new image first and then pasting somthing into it? Or is there a plugin or something to that effect? Thanx, Rick ...

Hi everyone, I am currently trying to serialize parts of a jtextpane using the java ObjectOutputStream to write it to disk and when i am reading the object back i am using the java ObjectInputStream. When i read the api about the streams here is what they say Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeansTM has been added to the java.bean...

Copy-Paste, Cut-Paste, Delete files

Hi, I don't success in copy /paste an output / result from the console ...