# Component empty space

**URL:** <https://forum.inductiveautomation.com/t/component-empty-space/84775>\
**Category:** Module Development\
**Created:** [January 25, 2024, 4:59pm UTC](https://forum.inductiveautomation.com/t/component-empty-space/84775 "2024-01-25T16:59:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathias\_Melling](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mathias_melling/32/67682_2.png) [@Mathias\_Melling](https://forum.inductiveautomation.com/u/Mathias_Melling)\
**Post date:** [January 25, 2024, 4:59pm UTC](https://forum.inductiveautomation.com/t/component-empty-space/84775/1 "2024-01-25T16:59:37Z")

</div>

Is there a way to prevent a component from being selected if the mouse is in empty space, but within the component's bounds?

Using the below component as an example, I want to prevent it from being selected if the mouse is in either the top left or top right area.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/0/c03186d688864ac60f2cd804670db7e021705dbd.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 25, 2024, 5:04pm UTC](https://forum.inductiveautomation.com/t/component-empty-space/84775/2 "2024-01-25T17:04:40Z")

</div>

No, the designer's component selection operation is entirely opaque, and seems to rely on Java Swing component bounds, which are always rectangular.
