# Help) The type MouseEvent is ambiguous / java.awt.event vs g4p\_controls

**URL:** <https://discourse.processing.org/t/help-the-type-mouseevent-is-ambiguous-java-awt-event-vs-g4p-controls/23686>\
**Category:** Libraries\
**Created:** [September 4, 2020, 11:49pm UTC](https://discourse.processing.org/t/help-the-type-mouseevent-is-ambiguous-java-awt-event-vs-g4p-controls/23686 "2020-09-04T23:49:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [September 4, 2020, 11:49pm UTC](https://discourse.processing.org/t/help-the-type-mouseevent-is-ambiguous-java-awt-event-vs-g4p-controls/23686/1 "2020-09-04T23:49:55Z")

</div>

Hello. Nice to meet you.

It seems that the two libraries are conflicting.

Is there a workaround?

> import java.awt.event._;  
> import g4p\_controls._;
> 
> GWindow window1;  
> public void windowMouse1(PApplet appc, GWinData data, MouseEvent event) {
> 
> }
> 
> void setup(){  
> size(100,100);  
> }  
> void draw(){  
> }

 ![zz](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/e/ea38087def32fd10f241d9caae34f0cdc01a9209.jpeg)

---

<div class="post-metadata">

**Author:** ![GWAK](https://avatars.discourse-cdn.com/v4/letter/g/13edae/32.png) [@GWAK](https://discourse.processing.org/u/GWAK)\
**Post date:** [September 5, 2020, 12:50am UTC](https://discourse.processing.org/t/help-the-type-mouseevent-is-ambiguous-java-awt-event-vs-g4p-controls/23686/2 "2020-09-05T00:50:36Z")

</div>

Essentially I couldn’t solve it.  
So I used it in a different way.

> import g4p\_controls.\*;  
> import java.awt.event.ActionEvent;  
> import java.awt.event.ActionListener;
