Avatar of taborrg
taborrg
 asked on

set the horizontal position where text will be added in JTextarea?

Hi,

Is there a way to set the horizontal position where text will be added in JTextarea?

I have:
First, Middle, Last name and then Company name.
Ex.
Jay F. Bar                                 Some Company
Ron  G.  McDonald               Some Other Company

I can't get the company names to line up using "\t" - can I set the insertion point for the company name to some line position?

Thanks
Java

Avatar of undefined
Last Comment
CEHJ

8/22/2022 - Mon
CEHJ

Save yourself a lot of hassle (you can only do what you're attempting by using an ugly monospaced font anyway) by using a JTable
taborrg

ASKER
Can a JTable be added to a JScrollPane?
taborrg

ASKER
How would that be done with a monospaced font?
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
CEHJ

Can a JTable be added to a JScrollPane?

Yes. It almost always is actually
taborrg

ASKER
How about in the JTextarea with a monospaced font?  I actually like Couriernew.
ASKER CERTIFIED SOLUTION
CEHJ

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
taborrg

ASKER
Looks good,

Thanks
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
CEHJ

:)