(Java) Why does swing screw up all my labels and stuff with spaces leading and

Sm F

New member
trailing!!? I've been so frustrated with this issue I've been having. I want to format text so that it lines the way I want it but things like /t do nothing and when I have a string like: "--------------------------WTF" (replace the "-" with " ") it will show up in my application as:

" WTF"

I just want to know why it's doing this, it's making me very angry >.< For now I've been use underscores "______________WTF" which shows the JLabel correctly. Am I missing something or is the compiler screwing with my head? And I just noticed that it also happens in here when I try and do it here thats why I had to use the "-" instead of spaces. I'm now guessing it may be something else but an explanation for this conspiracy would be great :) Thanks
 
Back
Top