Solved

JLabel, multi line

Posted on 2000-04-15
2
1,426 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

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

Suggested Solutions

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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:

914 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

18 Experts available now in Live!

Get 1:1 Help Now