I've been struggling with this problem for awhile and can't seem to find an answer. In the demo code on the codename one website, to center an object, the code used is
horizontalAlign(Component.CENTER),
however, when I try to use this in IntelliJ, Component.CENTER isn't even an option. There IS something called CENTER_ALIGNMENT, but when I input that, I get an error message saying "float" cannot be input into a requirement of "int". Does anyone know what the code is to center objects in tablelayout in codenameone? I have already checked and updated all my software.