[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug classpath/25205] JTree editing
From: |
audriusa at bluewin dot ch |
Subject: |
[Bug classpath/25205] JTree editing |
Date: |
26 Jan 2006 11:41:34 -0000 |
------- Comment #4 from audriusa at bluewin dot ch 2006-01-26 11:41 -------
Created an attachment (id=10731)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10731&action=view)
Should additionally fix mouse activation of the edting.
This should make possible to invoke the tree edting actions in the same way as
it is done by Sun:
1. Triple mouse click, or
2. Click on the selected node and no more mouse clicks for at least about (on
my impression) 800 ms.
2006-01-26 Audrius Meskauskas <address@hidden>
* javax/swing/plaf/basic/BasicTreeUI.java (MouseHandler.mousePressed):
Call startEditing when appropriate.
(WAIT_TILL_EDITING, EDIT, startEditTimer): New fields.
(startEditing): Always edit if directly ordered from
MouseHandler.mousePressed.
* javax/swing/tree/DefaultTreeCellEditor.java (CLICK_COUNT_TO_START):
New field. (createTreeCellEditor): Set click count to start.
(getTreeCellEditorComponent): Assing realEditor directly.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25205