# Is there a way to add Listeners to the PApplet?

**URL:** https://discourse.processing.org/t/is-there-a-way-to-add-listeners-to-the-papplet/17895
**Category:** Coding Questions
**Created:** [February 17, 2020, 10:18pm UTC](https://discourse.processing.org/t/is-there-a-way-to-add-listeners-to-the-papplet/17895 "2020-02-17T22:18:56Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)
#### Post date: [February 18, 2020, 1:17pm UTC](https://discourse.processing.org/t/is-there-a-way-to-add-listeners-to-the-papplet/17895/4 "2020-02-18T13:17:48Z")

</div>

> [@Using mouse button events while developing sketches in the Eclipse IDE](https://discourse.processing.org/t/using-mouse-button-events-while-developing-sketches-in-the-eclipse-ide/17389/2):
>
> Method addMouseListener() belongs to class Component from package java.awt: [Docs.Oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/Component.html#addMouseListener(java.awt.event.MouseListener)](http://Docs.Oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/Component.html#addMouseListener(java.awt.event.MouseListener)) Processing’s class PApplet used to extend class Applet, which is a subclass of Component: [Docs.Oracle.com/en/java/javase/11/docs/api/java.desktop/java/applet/Applet.html](http://Docs.Oracle.com/en/java/javase/11/docs/api/java.desktop/java/applet/Applet.html) The latest Processing version which it was still so is v3.0a5. After that version, most we can do is grab a Component ins…

---

_[View the full topic](https://discourse.processing.org/t/is-there-a-way-to-add-listeners-to-the-papplet/17895)._
