new line « JLabel « Java Swing Q&A





1. new line in jlabel    coderanch.com

2. JLabel new line?    java-forums.org

Hi, I'm just wondering how i can extend my JLabel so it goes onto a new line underneath. I have a set size window and label that i must use and at the moment it just goes along in a straight line and i cant see any of it. Sounds like a stupid question i know, but i have no idea ...

3. new line inside a JLabel    forums.oracle.com

I know that this sounds like a noobie question but.... I created a JLabel that has a paragraph in it. When I run the program, it prints the paragraph in one line. How do I make it so I can insert new lines? Since this is a GUI, I can't use println. I've tried the following: Code: ... JLabel label = ...