See if I got this right. The menu looks like:
Is that what you mean by right justified out to column 80? If not, ignore the rest.
I knew REXX before I knew
Java, and REXX has some wonderful string functions that I duplicate in every new language I learn. One called right() right justifies a string to a given length using a given pad character. So
would give you the first menu line above. The right method has a "while" loop while the string is shorter than the specified length, stick the specifed character (or characters!) on the front. The REXX function also truncates the string if it is too long, so a really long menu description would be chopped off rather than mess up the right alignment.
If all that fit your problem, you might want to start your own StringUtil class with reusable methods like right(), left(), center(), etc.