Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #3196 > unrolled thread
| Started by | "Ender" <ender@THRWHITE.remove-dii-this> |
|---|---|
| First post | 2011-04-27 15:43 +0000 |
| Last post | 2011-04-27 15:43 +0000 |
| Articles | 3 — 2 participants |
Back to article view | Back to comp.lang.java.gui
editing nodes in JTree, i "Ender" <ender@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: editing nodes in JTre "John" <john@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
Re: editing nodes in JTre "Ender" <ender@THRWHITE.remove-dii-this> - 2011-04-27 15:43 +0000
| From | "Ender" <ender@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:43 +0000 |
| Subject | editing nodes in JTree, i |
| Message-ID | <2008022313375475249-noreply@mailinvalid> |
To: comp.lang.java.gui I have a JTree with a child node that has a dropdown list in it. When I click on the node to make the list appear, then make a selection, the icon changes to what looks like a document icon. My problem is that the document icon stays there after I make the selection in the dropdown list until I click on another node. It's like the process of making a selection is unfinished. Anyone know what that is? --- * 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
[toc] | [next] | [standalone]
| From | "John" <john@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:43 +0000 |
| Subject | Re: editing nodes in JTre |
| Message-ID | <47c4418a$0$886$ba4acef3@news.orange.fr> |
| In reply to | #3196 |
To: comp.lang.java.gui Ender a ocrit : > I have a JTree with a child node that has a dropdown list in it. When I > click on the node to make the list appear, then make a selection, the > icon changes to what looks like a document icon. > > My problem is that the document icon stays there after I make the > selection in the dropdown list until I click on another node. It's like > the process of making a selection is unfinished. > > Anyone know what that is? The combo box is still in editing state when you select a value. You could add an action listener to the combo box (problem for reselecting the same value) and stop the editing when you receive an action event. --- * 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
[toc] | [prev] | [next] | [standalone]
| From | "Ender" <ender@THRWHITE.remove-dii-this> |
|---|---|
| Date | 2011-04-27 15:43 +0000 |
| Subject | Re: editing nodes in JTre |
| Message-ID | <2008030610411416807-noreply@mailinvalid> |
| In reply to | #3214 |
To: comp.lang.java.gui On 2008-02-26 10:44:09 -0600, John <john@nospam.com> said: > Ender a ocrit : >> I have a JTree with a child node that has a dropdown list in it. When I >> click on the node to make the list appear, then make a selection, the >> icon changes to what looks like a document icon. >> >> My problem is that the document icon stays there after I make the >> selection in the dropdown list until I click on another node. It's like >> the process of making a selection is unfinished. >> >> Anyone know what that is? > > The combo box is still in editing state when you select a value. You > could add an action listener to the combo box (problem for reselecting > the same value) and stop the editing when you receive an action event. That's what I actually have. I have an ActionListener tied to this JComboBox in the JTree node and in the ActionListener, I have a stopCellEditing() call, but before and after that call I put an isEditing() to see if it was in editing state and it returns false. But if I click on another node after making the selection, then the icon returns to it's normal icon; otherwise, the icon is the editing doc icon after I make a selection and before I click on anything else. --- * 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
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.java.gui
csiph-web