Solved

Making a java.awt.TextArea wrappable

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
ForLoop Example 3 48
factorial example 4 40
Java string replace 11 46
mysql jsp example issue 32 35
For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
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 about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

773 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