redho home | products | services
Web Design Forums

Web Design Forums  


Web Hosting, Web Design, Software and Web Development Forums  
 FAQFAQ   MemberlistArchive  Log inLog in   RegisterRegister 
         

My own console



 
Post new topic   Reply to topic    Web Design Forums -> JAVA programming forum
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)
  Reply with quote


Kopilman



Joined: 25 May 2006
Posts: 162
Why dont you use a JList ?
Or JTable even better
  Reply with quote
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 ?
  Reply with quote
PMandy



Joined: 05 Jun 2006
Posts: 11
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
  Reply with quote
Page 1 of 1
Post new topic   Reply to topic    Web Design Forums -> JAVA programming forum


Dubai Forums - Expat Help | Vegan Chat | Java Programming | Free 3D tutorials and 3d textures | Paris Forum | EU Forum
Free Dubai Classifieds | Free London Classifieds | Jobs in London

High Quality, Custom 3d animation and Web Design solutions Royal Quality Web Hosting Services Vegetarian and Animal Rights news

Powered by phpBB © 2001, 2005 phpBB Group