Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #3235

correct behavior of a cus

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "Ender" <ender@THRWHITE.remove-dii-this>
Subject correct behavior of a cus
Message-ID <2008030615405975249-noreply@mailinvalid> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 19
Date Wed, 27 Apr 2011 15:43:41 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303919021 96.60.20.240 (Wed, 27 Apr 2011 10:43:41 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:43:41 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:3235

Show key headers only | View raw


  To: comp.lang.java.gui
In a JTree I have several leaf nodes w/ a custom renderer extended from 
DefaultTreeCellRenderer. Some of the leaf nodes are JComboBoxes and 
others are JTextFields. When  user clicks on the leaf node to edit, for 
ex. a JTextField ... he inputs the text while the field is in edit mode.

At this point, what if he doesn't press the enter key to stop it from 
editing ... what if the user just enters the text, there's still a 
blinking cursor, then takes the mouse to click on another leaf node ... 
which means the tree model's listener treeNodesChanged() never gets 
fired.

What am I supposed to do in that case? Should I manually fire this 
change somehow? Anyone know how?

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar | Unroll thread


Thread

correct behavior of a cus "Ender" <ender@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
  Re: correct behavior of a "tar" <tar@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000

csiph-web