| View previous topic :: View next topic |
| Author |
Message |
jomanda
Joined: 19 May 2006 Posts: 70 Location: Germany
|
I'm trying to do a little console that will display error messages, I created a class Console that extends JFrame, and containing a method addMsg(msg, type); every time a message is added, i'm adding the current date, the message in a new JLabel that is added next in the contentPane, the problem is that these Jlabels are displayed in one line
How to put them just one per line
(sorry for my english) |
| |
|
|
|
|
Kopilman
Joined: 25 May 2006 Posts: 162
|
Why dont you use a JList ?
Or JTable even better |
| |
|
|
jomanda
Joined: 19 May 2006 Posts: 70 Location: Germany
|
Mhh i'm new to java :[
Thanks for tips
JTable is the best way you think ? |
| |
|
|
PMandy
Joined: 05 Jun 2006 Posts: 11
| |
|
|