I have set up my simple Java GUI to use a JTextPane. I need it to display the following 3 lines over and over again:
- A line with input from a variable (aligned left)
- A line with output from a variable (right aligned)
- A blank line
Now I can set it to do this, but I have trouble with right-aligning only one line. Is there an easy way I can acheive what I am suggesting. The reason i need it is for an advanced calculator (scrollable CAS) and most of these systems have input on the right and output on the left.
I would appreciate any help you have to offer in acheiving what i mention,
Thanks in advance,