   [java] Labels
  Any way to have 2 labels really close ? I tried to use setBounds(new Rectangle(stuff) ) when adding the labels to a panel that doesn't have a LayoutManager but it seriously didn't work out.Is there any way to place a control on the actual coordinates you want?Is there a way to have more than 1 line (rather 8 lines) in the same label?A little explanation:I have 5 labels, their text seems like this:Label 1Label 2Label 3Label 4Label 5I want it to be like this:Label 1Label 2Label 3Label 4Label 5"Closer" The actual idea is to have a game that uses just ascii characters (I know it is stupid but it is for a class project)It would be like this:############################  #O ##   O <    ##  O  ############################Currently the separation between the labels is too big and it looks ugly.ps: It must stick to AWT;   
  setLayout(NULL) should remove the layout and let you specify the position and size using seBounds().IIRC there should be also a way to put more lines in a Label, but I really don't remember what is it.   ;  Tried NULL and now they don't even show up, there is something I am missing let me check the documentation   ;  I thought that if you add a "\n" in the string, that will let you have multiple lines.   ;Quote:Original post by VexorianTried NULL and now they don't even show up, there is something I am missing let me check the documentationIf you remove the layout, then you have to set a size because otherwise it defaults to w=0, h=0 (I think) and you wont see anything.try setBounds(0,0100,10); just after the setLayout(NULL);   ;Quote:Original post by WhackjackI thought that if you add a "\n" in the string, that will let you have multiple lines.It shows \n as ?Quote:If you remove the layout, then you have to set a size because otherwise it defaults to w=0, h=0 (I think) and you wont see anything.try setBounds(0,0100,10); just after the setLayout(NULL);I already used setBounds..I decided a disabled textarea would work well enough for this case   ;  '\n' is the how a C string represents the ASCII code for 'new line' and wont be printed. But I don't know if it works. Can you post the label initialization code?   