Results 1 to 6 of 6
- 04-06-2012, 07:25 PM #1
JFrame each component in new line and new line in JLabel
Hello. How i can make my every component in JFrame to be in new line after doing JFrame.add(component)? Now if just length is almost as width, so just then other component will be in new line.
And how i can make new line in JLabel text something like that: "1 Line<br>2 Line"?
- 04-06-2012, 07:37 PM #2
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
Re: JFrame each component in new line and new line in JLabel
Maybe a GridLayout can solve your JComponent placement; w.r.t. multiple lines in your JLabel, try the following text: "<html>1 Line<br>2 line</html>".
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
- 04-06-2012, 08:00 PM #3
- 04-06-2012, 08:05 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,606
- Blog Entries
- 7
- Rep Power
- 17
Re: JFrame each component in new line and new line in JLabel
When people rob a bank they get a penalty; when banks rob people they get a bonus.
- 04-06-2012, 08:12 PM #5
- 04-06-2012, 09:59 PM #6
Similar Threads
-
Open a URL and read it line by line (Works in Eclipse but not from Command Line)
By rosco544 in forum NetworkingReplies: 16Last Post: 09-17-2011, 02:41 AM -
Formatting java command line output - Multi line string
By dricco in forum New To JavaReplies: 2Last Post: 07-02-2010, 02:20 PM -
JLabel new line?
By SNPTT in forum New To JavaReplies: 8Last Post: 05-19-2010, 11:24 AM -
Need to read an .ini and .abook file line by line (both files contain texts)
By ollyworks in forum Java AppletsReplies: 4Last Post: 09-10-2009, 10:18 AM -
Make a text in Jlabel down to next Line
By hungleon88 in forum AWT / SwingReplies: 2Last Post: 12-01-2008, 11:10 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks