Solved

Making a java.awt.TextArea wrappable

Posted on 1997-09-26
3
348 Views
Last Modified: 2008-03-06
Has anyone done anything with the java.awt.TextArea to make it word wrap?  I am trying to find some tips on how to go about doing this.  Thanks.
0
Comment
Question by:cadillac
3 Comments
 
LVL 10

Accepted Solution

by:
kollegov earned 100 total points
ID: 1227543
Hm, look like only way is to override
all text content changing methods in textArea
and wrap it manually using getColumns()
and re-splitting rows, than call superclass methods.
0
 

Author Comment

by:cadillac
ID: 1227544
Do you know how to do this, or have you done this before?
0
 
LVL 4

Expert Comment

by:russgold
ID: 1227545
Umm, there is a *much* simpler way if you are using JDK 1.1.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now