i'm quite new in java, just started to program in swing. one problem i really couldnt solve is that i have a string which i used to display output messages in text mode, it was alligned by adding spaces to them, however it doesnt work in graphical mode cos the spaces have a narrower width than the characters, so the columns are crooked, even if i try to display it in text box. any idea how i could solve it without reconstructing the original output?
thanks for your help,
put ur code i cant getting ur answer
Try using a monospaced font.
What about tabs?
You can try using tabs.
You can align text of different fonts by using tabs. The escape character for a tab is "\t".
java text components also like html. ;-) ;-)
i just want to say hello 您好！
Welcome caixioa! There's an Introductions forum too you could've said hello in... but anyways, welcome to our community. :)
See you around.