GPanel object position using G4P


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.

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.

1 Like

Question solved.

Thanks !