Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How can I set position of a JTextArea inside a JPanel?

843807Nov 23 2009 — edited Nov 23 2009
Hi,

I'm trying to add a JTextArea to a JPanel. It works as expected but what can I do to alter the position of the JTextArea inside the JPanel? Right now the JTextArea is centered and starting at the top of the JPanel. I would like it to, either start one row down, or be centered vertically, depending on what looks the best.

Tried to mark as question, but that option is gone once the message is posted it seems.

Edited by: Red_herring on Nov 23, 2009 11:15 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2009
Added on Nov 23 2009
3 comments
228 views