classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches] FYI: patch for DefaultEditorKit fixes PR 24925


From: Anthony Balkissoon
Subject: [cp-patches] FYI: patch for DefaultEditorKit fixes PR 24925
Date: Mon, 21 Nov 2005 11:11:19 -0500

This patch fixes bug 24925 by not inserting text into a text component
that is either disabled or uneditable.  

Also, when a key is typed, instead of calling insertString, we should be
calling replaceSelection.  Fixed.

2005-11-21  Anthony Balkissoon  <address@hidden>

        Fixes bug #24925
        * javax/swing/text/DefaultEditorKit.java:
        (DefaultKeyTypedAction.actionPeformed): Call replaceSelection here
        instead of insertString and only do so if the text component is both 
        enabled and editable.

--Tony

Attachment: DefaultKeyTypedAction.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]