# Align for TextLabel in Processing

**URL:** <https://discourse.processing.org/t/align-for-textlabel-in-processing/9079>\
**Category:** Libraries\
**Created:** [March 7, 2019, 2:47pm UTC](https://discourse.processing.org/t/align-for-textlabel-in-processing/9079 "2019-03-07T14:47:11Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [March 11, 2019, 4:02pm UTC](https://discourse.processing.org/t/align-for-textlabel-in-processing/9079/4 "2019-03-11T16:02:40Z")

</div>

I remember seeing this question long before – I don’t think align works on TextLabel in this way: [Text Alignment in ControlP5 button - Processing 2.x and 3.x Forum](https://forum.processing.org/two/discussion/10129/text-alignment-in-controlp5-button)

See also the idea of a callback workaround here: [Reddit - Dive into anything](https://www.reddit.com/r/processing/comments/9wbfb0/is_there_no_alignment_function_for_controlp5/)

For the label could you display it with a simple `text()`, so that you can use `textAlign()`?

Another discussion of using align on matrix vs scrollablelist:

> [@Problem with ControlP5, Scrollablelist and align method](https://discourse.processing.org/t/problem-with-controlp5-scrollablelist-and-align-method/1808):
>
> Hi everyone, I have trouble aligning text in a scrollable list in the ControlP5 library. Here is an example : import controlP5.\*; import java.util.\*; ControlP5 cp5; void setup() { size(400, 400); cp5 = new ControlP5(this); List l = Arrays.asList("a", "b", "c", "d", "e", "f", "g", "h"); cp5.addScrollableList("dropdown") .setPosition(100, 100) .setSize(200, 100) .setBarHeight(20) .setItemHeight(20) .addItems(l); cp5.getController("dropdown").getCaptio…

---

_[View the full topic](https://discourse.processing.org/t/align-for-textlabel-in-processing/9079)._
