JavaSwingJTree and TreeModel: Changes in 1.4


Changes in 1.4

TreeModel

very stupid additional specification for getIndexOfChild() (which was virtually unusable before, and that hasn't changed)

silly, vague explanation about not having the same child multiple times under the same parent (Is it called TreeModel, or what?)

DefaultTreeModel

support for 'null' root (firing treeStructureChanged with null as path, as expected).

added getTreeModelListeners

documentation update

DefaultTreeSelectionModel

added getTreeSelectionListeners, getPropertyChangeListeners

DefaultTreeCellRenderer

getFont() defaults to JTree's font

fixed one wrong comment

DefaultTreeCellEditor

removes the old editingComponent from its parent also in getTreeCellEditorComponent

border handling for the default editor components

added getCellEditorListeners

some isCellEditable changes

FixedHeightLayoutCache/VariableHeightLayoutCache

all changes to support null root?

FixedHeight

JTree

support for null root

setModel() now clears selection (improvement?)

setShowsRootHandles doesn't expand the root any more

DND support

added getTreeExpansionListeners, getTreeWillExpandListeners, getTreeSelectionListeners

added getNextMatch

changed getPreferredScrollableViewportSize (?) /getScrollableUnitIncrement (boundary result)

Accessibility changes (dt.) dt.

isExpandedRow() suddenly doesn't test for parent paths anymore (it needn't: if they were not expanded, the row wouldn't exist)

getNextMatch changed

Something about getLeadSelectionPath

BasicTreeUI

DND support

changed painting

keyboard navigation: getNextMatch

support for null root

right to left input map

DND keys

startEditing won't start if the old editor doesn't stop

defaultDropTargetListener

? (1.4.1)


(C) 2001-2009 Christian Kaufhold (swing@chka.de)