# GPanel object position using G4P

**URL:** <https://discourse.processing.org/t/gpanel-object-position-using-g4p/27311>\
**Category:** Libraries\
**Created:** [January 23, 2021, 5:31pm UTC](https://discourse.processing.org/t/gpanel-object-position-using-g4p/27311 "2021-01-23T17:31:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![R2processing](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@R2processing](https://discourse.processing.org/u/R2processing)\
**Post date:** [January 23, 2021, 5:31pm UTC](https://discourse.processing.org/t/gpanel-object-position-using-g4p/27311/1 "2021-01-23T17:31:54Z")

</div>

Hello,

I’m using the useful G4P library.

using lblTest.setText(“XXX”); I’m able to change the text of a GLAbel object.

I’d like to change the location of a GLabel object inside a Panel with G4P.  
I didn’t succeed on this apparently simple task.

Thanks for your help.  
BR  
R2

---

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [January 23, 2021, 5:36pm UTC](https://discourse.processing.org/t/gpanel-object-position-using-g4p/27311/2 "2021-01-23T17:36:24Z")

</div>

If the `GLabel` is called `lbl` then you can move it with  
`lbl.moveTo(x, y);`

Assuming the `GLabel` has _already_ been added to the panel then [x,y] is the position on the panel.

---

<div class="post-metadata">

**Author:** ![R2processing](https://avatars.discourse-cdn.com/v4/letter/r/7ba0ec/32.png) [@R2processing](https://discourse.processing.org/u/R2processing)\
**Post date:** [January 23, 2021, 5:49pm UTC](https://discourse.processing.org/t/gpanel-object-position-using-g4p/27311/3 "2021-01-23T17:49:36Z")

</div>

Question solved.

Thanks !  
R2
