Currently JTextField aligns all text to the left side, how do you change it so all text typed into it goes to the right side instead?

Re: How to align text in JTextField 80 80
JTextField.setHorizontalAlignment(JTextField.RIGHT);
Re: How to align text in JTextField 80 80

Thanks for the tip.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.