# Example of using a custom method

**URL:** <https://forum.inductiveautomation.com/t/example-of-using-a-custom-method/21883>\
**Category:** Ignition\
**Created:** [January 15, 2019, 8:08am UTC](https://forum.inductiveautomation.com/t/example-of-using-a-custom-method/21883 "2019-01-15T08:08:31Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 16, 2019, 3:40pm UTC](https://forum.inductiveautomation.com/t/example-of-using-a-custom-method/21883/7 "2019-01-16T15:40:37Z")

</div>

> [@Esn](#):
>
> My goal is to be able to drag-n-drop tags from a tag browser tree into a standard table component.  
> The standard table component doesn’t have a ‘onTagsDropped’ extention function like some other compoennts do.  
> So I want to add that functionality - possibly through a custom method?

Also, I thought this sounded familiar, so I did a search, and realized that I actually already did this a year ago:

> [@Drag and drop from tag browse tree to power table](http://forum.inductiveautomation.com/t/drag-and-drop-from-tag-browse-tree-to-power-table/15260/3):
>
> Here’s a sample window I came up with a while back. Note that is pretty low-level Java Swing stuff - so you’re on your own merits to figure out how it all works. Also, don’t even try and call into support about this. [Power Table Tags Dropped.proj](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/70c831f665ee8ad4a4167c49a595750bf5859a8b.proj) (19.9 KB) For a brief explanation: The initialize() function of the power table fires the addListener() custom method, which creates an instance of a custom [DropTargetListener](https://docs.oracle.com/javase/7/docs/api/java/awt/dnd/DropTargetListener.html). That custom DropTargetListener has an overridden drop() function…

---

_[View the full topic](https://forum.inductiveautomation.com/t/example-of-using-a-custom-method/21883)._
