character issues in read-only JTextArea
- From: ameyas7 <amey.samant@xxxxxxxxx>
- Date: Sat, 21 Jun 2008 04:54:20 -0700 (PDT)
hi
i am using a JTextArea for displaying multi-line text. the component
has been set to read only and background color adjusted so it appears
more like a label. i am adding this component to container with
gridbaglayout and it has been given HORIZONTAL fill and weightx as 1.0
so space is not a constraint for the component as a whole.
the issue is i find some part of first character being chopped off.
for instance if the first character is 'W' then its slightly chopped
at the top-left corner. however for characters like 'T' it doesnt show
any issues (since width of 'T' is smaller than 'W').
however the problem is only with the first character, that also which
are relatively wider in size.
has anybody experienced this behavior before and how to resolve it.
thanks.
regards,
amey
.
- Follow-Ups:
- Re: character issues in read-only JTextArea
- From: Roedy Green
- Re: character issues in read-only JTextArea
- Prev by Date: Re: Newbie: How to find out installed version of java?
- Next by Date: Re: character issues in read-only JTextArea
- Previous by thread: Java Swing Developer - Atlanta, GA
- Next by thread: Re: character issues in read-only JTextArea
- Index(es):