((JLabel) swingComponent.getJComponent()).setHorizontalAlignment(alignment);
JLabel swingLabel = (JLabel) swingComponent.getJComponent(); switch (alignment) { case Label.RIGHT: swingLabel.setHorizontalAlignment(JLabel.RIGHT); break; case Label.CENTER: swingLabel.setHorizontalAlignment(JLabel.CENTER); break; case Label.LEFT: default: swingLabel.setHorizontalAlignment(JLabel.LEFT); break; }
  public void setAlignment(int alignment)  {    ((JLabel) swingComponent.getJComponent()).setHorizontalAlignment(alignment);  }