# Drag and drop from tree view

**URL:** <https://forum.inductiveautomation.com/t/drag-and-drop-from-tree-view/27644>\
**Category:** Ignition\
**Created:** [August 21, 2019, 8:14pm UTC](https://forum.inductiveautomation.com/t/drag-and-drop-from-tree-view/27644 "2019-08-21T20:14:15Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [October 21, 2022, 6:15am UTC](https://forum.inductiveautomation.com/t/drag-and-drop-from-tree-view/27644/8 "2022-10-21T06:15:56Z")

</div>

> [@prasath.t](#):
>
> how to add multiple tags to list same time

At this time, I'm not sure how to enable multiline selection on a Tree View.

> [@prasath.t](#):
>
> i want mouse to look like this

It is possible to create a custom cursor. Here are two resources that I would look at for that purpose:

- [Java Docs: Create Custom Cursor](https://docs.oracle.com/javase/7/docs/api/java/awt/Toolkit.html#createCustomCursor(java.awt.Image,%20java.awt.Point,%20java.lang.String))
- [Vision: Set Cursor icon manually](https://forum.inductiveautomation.com/t/vision-set-cursor-icon-manually/26069/3)

To simply change the cursor to any of the [standard options](https://docs.oracle.com/javase/7/docs/api/java/awt/Cursor.html), add this code to your Tree View's mousePressed event handler to initially alter the cursor:

```auto
from java.awt import Cursor
event.source.setCursorCode(Cursor.HAND_CURSOR)
event.source.parent.setCursorCode(Cursor.HAND_CURSOR)

```

and also add this code to your mouseReleased event handler to change the cursor back once the drag is finished:

```auto
from java.awt import Cursor
event.source.setCursorCode(Cursor.DEFAULT_CURSOR)
event.source.parent.setCursorCode(Cursor.DEFAULT_CURSOR)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/drag-and-drop-from-tree-view/27644)._
