Solved

JLabel, multi line

Posted on 2000-04-15
2
1,414 Views
Last Modified: 2008-02-20
sorry, i onyl have 30 points left. is this a way to make a JLabel auto wrap downward if all the text dosent fit on the first line? Right now I get something like "Blah Blah ..." There is no more room on the right and i want it to go down and make a new line. I keep chaning the text and dont know the length.

thanks,
  P
0
Comment
Question by:pipe
2 Comments
 
LVL 7

Accepted Solution

by:
Sasha_Mapa earned 30 total points
ID: 2719718
No, actually you can't. What you can do is for example extend JLabel and add that functionality which shouldn't be too hard. You can also get the same effect using a JTextArea and setting it to be disabled.
0
 

Author Comment

by:pipe
ID: 2719752
thx
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

760 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