|
|
| 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) |
| Why dont you use a JList ? Or JTable even better |
| Mhh i'm new to java :[ Thanks for tips JTable is the best way you think ? |
| jomanda, layout managers is http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html. If the layout managers that come with the jdk dont satisfy you, have a look at FormLayout, TableLayout, PercentLayout or HTMLLayout |