Results:
References: [ +subject:/^(?:^\s*(re|sv|fwd|fw)[\[\]\d]*[:>-]+\s*)*\[cinjug\-users\]\s+JTree\s+and\s+DND\s*$/: 6 ]
Total 6 documents matching your query.
- 1. RE: [cinjug-users] JTree and DND (score: 1)
- Author: "Brian Engel" <BEngel@xxxxxxxxxxxxx>
- Date: Thu, 19 Jun 2003 13:18:23 -0400
- Yes, it did! The solution is to use the TreeSelectionListener. Then use code like this to get the Node.... private DefaultMutableTreeNode SelectedNode ...... (snip) public void valueChanged(TreeSelec
- /html/users/2003-06/msg00110.html (12,746 bytes)
- 2. RE: [cinjug-users] JTree and DND (score: 1)
- Author: "Ford, Eric (LNG-DAY)" <eric.ford@xxxxxxxxxxxxxx>
- Date: Thu, 19 Jun 2003 11:13:04 -0400
- Here is an article that I used when doing what you are. It was helpful to me, maybe you can use this to solve your problem. http://www.javaworld.com/javaworld/javatips/jw-javatip97.html
- /html/users/2003-06/msg00109.html (12,531 bytes)
- 3. RE: [cinjug-users] JTree and DND (score: 1)
- Author: "Schindler, Tom" <tom.schindler@xxxxxxx>
- Date: Thu, 19 Jun 2003 11:02:44 -0400
- Could it be a truncation issue? Your double value of 9.9999998 getting converted to int 9 instead of 10. Try adding 0.5 to your double value before casting to int. Tom I can get them as doubles fine
- /html/users/2003-06/msg00108.html (10,827 bytes)
- 4. Re: [cinjug-users] JTree and DND (score: 1)
- Author: "Brian Engel" <BEngel@xxxxxxxxxxxxx>
- Date: Thu, 19 Jun 2003 10:55:00 -0400
- I can get them as doubles fine dtde.getLocation.getX() but the JTree object method getPathForLocation(int x,int y) requires the ints. Here is what I am doing.... TreePath myTreePath=myJTree.getPathFo
- /html/users/2003-06/msg00107.html (9,998 bytes)
- 5. Re: [cinjug-users] JTree and DND (score: 1)
- Author: "Brian Engel" <BEngel@xxxxxxxxxxxxx>
- Date: Thu, 19 Jun 2003 10:38:58 -0400
- It kinda of works. The problem is that it isn't precise enough. i.e. If I grab (in my example) grandchild1 by the uppermost left corner of the "leaf icon" and drag it, the getPathForLocation() method
- /html/users/2003-06/msg00106.html (9,019 bytes)
- 6. Re: [cinjug-users] JTree and DND (score: 1)
- Author: "James Carman" <james@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 19 Jun 2003 09:28:50 -0400
- Use the JTree.getPathForLocation(int x, int y) to figure it out. I am trying to create a JTree which I can drag and drop one DefaultMutableTreeNode on top of another (with hopes of actually moving it
- /html/users/2003-06/msg00105.html (7,829 bytes)
Current List: 1 - 6
Page: [1]
This search system is powered by
Namazu