Topic: 如何设置JOptionPane里面的字体

  Print this page

1.如何设置JOptionPane里面的字体 Copy to clipboard
Posted by: ant21
Posted on: 2003-09-17 20:55

如题,
谢谢。

2.Re:如何设置JOptionPane里面的字体 [Re: ant21] Copy to clipboard
Posted by: mochow
Posted on: 2003-09-17 22:53

使用UIManager.put
下面是个例子

Font font = new Font("SansSerif", Font.ITALIC,12 );
UIManager.put("Label.font",font);
UIManager.put("Button.font",font);
JOptionPane.showMessageDialog(null,"试试吧!");

3.Re:如何设置JOptionPane里面的字体 [Re: ant21] Copy to clipboard
Posted by: ant21
Posted on: 2003-09-19 20:03

谢谢,回去试试。

4.Re:如何设置JOptionPane里面的字体 [Re: ant21] Copy to clipboard
Posted by: cqlgc
Posted on: 2003-09-21 21:41

UIManager 的用途很多,仔细看看UIManager的有关资料吧


   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