Solved

Making a java.awt.TextArea wrappable

Posted on 1997-09-26
3
336 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

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…
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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:

759 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

21 Experts available now in Live!

Get 1:1 Help Now