Solved

JLabel, multi line

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
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…

785 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