Topic: [求助]如何改变字体颜色?

  Print this page

1.[求助]如何改变字体颜色? Copy to clipboard
Posted by: keen
Posted on: 2005-04-30 00:07

我想像聊天室那样,通过下拉框来选择字体颜色....可是语法不懂....

if(choicepad.colorChoice.getSelectedItem().equals(" 黑色 "))
{
(这里用什么语句?)
}

要用到什么包吗?

2.Re:[求助]如何改变字体颜色? [Re: keen] Copy to clipboard
Posted by: aroundall
Posted on: 2005-04-30 22:53

Maybe you can do lile this:

t.setColor( new Color( 0, 0, 0) );

//t is the object that you can input some chars


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923