BBS水木清华站∶精华区
发信人: lixiaobin ( 浪子), 信区: Java
标 题: Re: 如何在TextArea中显示蓝色字符串?
发信站: BBS 水木清华站 (Wed Apr 28 11:25:32 1999) WWW-POST
【 在 zhangweidong (冬冬) 的大作中提到: 】
∶ 我在Frame的TextArea中用paint(Graphics g)方法的g.setColor(Color.blue)和
∶ g.drawString(String s,int x,int y)函数,但TextArea中不显示字符串,请教,
∶ 请教各位大虾,能否有方法实现?
∶ 不胜感谢!!!!!
Perhaps you could not use paint methord at textarea!You may do like this:
setForeground(Color.blue);
TextArea.append(String);
--
※ 来源:·BBS 水木清华站 bbs.net.tsinghua.edu.cn·[FROM: 202.119.199.118]
BBS水木清华站∶精华区