classpath-patches
[Top][All Lists]
Advanced

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

[cp-patches]: Patch: JTree editing.


From: Lillian Angel
Subject: [cp-patches]: Patch: JTree editing.
Date: Wed, 24 Aug 2005 16:36:36 -0400

Still working on JTree editing. You will not be able to test this yet,
but ATM it is almost working :)

2005-08-24  Lillian Angel  <address@hidden>

        * javax/swing/DefaultCellEditor.java
        (isCellEditable): If the event is null, the cell is still
        editable.
        * javax/swing/plaf/basic/BasicTextUI.java
        (getVisibleEditorRect): Use getPreferredSize to get the width
        and height.
        * javax/swing/tree/DefaultTreeCellEditor.java
        (paint): Fixed to paint the JTextField with the background
        and border at the correct location.
        (DefaultTreeCellEditor): Changed to initialize realEditor.
        (configureEditingComponent): Helper function implemented.
        (getTreeCellEditorComponent): Fixed to use realEditor to get 
        component.        
        (isCellEditable): Fixed to configure editing component.
        (shouldSelectCell): Always returns true.
        (stopCellEditing): Fixed to configure editing component if 
        needed.
        (cancelCellEditing): Fixed to configure editing component if 
        needed.
        (createTreeCellEditor): Fixed to initialize fields.

Attachment: patch.diff
Description: Text Data


reply via email to

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