How to make a table with multiple lines in the cells in JAVA?

Posted on 2013-11-17
Last Modified: 2013-11-18
I am working on a GUI in Java SWT and I need to create a table with multiple lines in each cell. By default even if the content has multiple lines, they show up in one lines.

Can you please help me to make a table with multiple lines in the cells based on the number of lines of the content?

Question by:Tolgar
  • 4
  • 3
LVL 75

Expert Comment

by:Michel Plungjan
ID: 39655595

Author Comment

ID: 39656401
Unfortunately, this example only creates cells with same heights in all rows.

But there is another widget in here:

Do you have any idea how I can use it?
LVL 75

Accepted Solution

Michel Plungjan earned 500 total points
ID: 39656417
Click the link to the site
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.


Author Comment

ID: 39656537
Thanks. I installed it as a plugin.

Now how am I going to use it?

I cannot see any documentation in the site?
LVL 75

Expert Comment

by:Michel Plungjan
ID: 39656557
I have no idea. Just tried to help you

Any feedbacks are welcome by the author :  Sihong Zhu (

Author Comment

ID: 39656571
I don't think this plugin will do what I am looking for.
LVL 75

Expert Comment

by:Michel Plungjan
ID: 39656642
Ah, then you should not accept as answer, but wait for someone else to answer

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
HSSFWorkbook cannot be resolved error 10 65
jdbc error in jsp application 20 44
hibernate insert example 13 28
check java version using powershell 13 80
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 about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

813 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

8 Experts available now in Live!

Get 1:1 Help Now