hey there, could someone please tell me how to align the cursor to go to the left when someone clicks inside the textfield

just a little part I copied out of the java API's, should answer your question:

public void setHorizontalAlignment(int alignment)

Sets the horizontal alignment of the text. Valid keys are:

* JTextField.LEFT
* JTextField.CENTER
* JTextField.RIGHT
* JTextField.LEADING

invalidate and repaint are called when the alignment is set, and a PropertyChange event ("horizontalAlignment") is fired.

alignment - the alignment
IllegalArgumentException - if alignment is not a valid key

commented: Nicely done, no little explained not to much reviled, so the person can learn. peter_budo +6