JDK-4732355 : Paste with mouse button ignores JTextComponent.isEditable()
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2002-08-15
  • Updated: 2002-08-16
  • Resolved: 2002-08-16
Related Reports
Duplicate :  
Description
Starting with JDK 1.4, using the middle mouse button to paste text into a JTextArea ignores whether or not the text is editable.  ie you can paste into a test area that has isEditable() == false.

I can't point my finger at the exact fault/change in the source, but I suspect the change is due to the changes involving invokeAction and TransferHandler.getPasteAction.  It would seem that you can now get at the paste action via the action map; unfortunately, this bypasses the isEditable check in JTextComponent.paste().

Comments
EVALUATION This is a duplicate of 4644420. ###@###.### 2002-08-16
16-08-2002