Java tutorial
//package com.java2s; //License from project: Open Source License import java.awt.Component; import javax.swing.JComponent; public class Main { public static Component AlignLeft(JComponent component) { component.setAlignmentX(Component.LEFT_ALIGNMENT); return component; } }