就是说比如我有一个文本是如下
my name is moto
moto is not motorola
moto is human
hhaha
其中的换行,空格我都想保留,我把他这么写是错的
String str = "my name is moto
moto is not motorola
moto is human
hhaha";
呵呵,我想也肯定是错的,但是该如何写呢,请解答我这个菜鸟问题,谢谢
my name is moto
moto is not motorola
moto is human
hhaha
其中的换行,空格我都想保留,我把他这么写是错的
String str = "my name is moto
moto is not motorola
moto is human
hhaha";
呵呵,我想也肯定是错的,但是该如何写呢,请解答我这个菜鸟问题,谢谢
另外,JTextPane好象支持rtf格式,rich text format,支持各种文字格式