Topic: 用什么函数将JLabel设置成向靠右对齐??

  Print this page

1.用什么函数将JLabel设置成向靠右对齐?? Copy to clipboard
Posted by: jiang_sl
Posted on: 2004-02-20 17:49

用什么函数将JLabel,JTextField 等设置成向靠右对齐??
thanks

2.Re:用什么函数将JLabel设置成向靠右对齐?? [Re: jiang_sl] Copy to clipboard
Posted by: wangyuanzju
Posted on: 2004-02-20 19:37

setHorizontalAlignment(SwingConstants.RIGHT);

3.Re:用什么函数将JLabel设置成向靠右对齐?? [Re: jiang_sl] Copy to clipboard
Posted by: jiang_sl
Posted on: 2004-02-20 20:23

wangyuanzju :
怎么样设定JLabel的长度呀??


   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