当前位置: 技术问答>java相关
请问:如何设置JOptionPane里的字体?
来源: 互联网 发布时间:2015-09-10
本文导语: 试了很久一直没有成功,哪位高手点拨一下,谢谢。 | 这是有一遍文章可以帮助你: www.csdn.net/author/turbochen | Font font=new Font("SansSerif", 0, 12); String names[]={"Label","CheckBox","Pop...
试了很久一直没有成功,哪位高手点拨一下,谢谢。
|
这是有一遍文章可以帮助你:
www.csdn.net/author/turbochen
www.csdn.net/author/turbochen
|
Font font=new Font("SansSerif", 0, 12);
String names[]={"Label","CheckBox","PopupMenu","TextPane",
"MenuItem","CheckBoxMenuItem","JRadioButtonMenuItem","ComboBox","Button","Tree","ScrollPane","TabbedPane","EditorPane","TitledBorder","Menu","TextArea","OptionPane","MenuBar","ToolBar","ToggleButton","ToolTip","ProgressBar","TableHeader","Panel","List","ColorChooser","PasswordField","TextField","Table","Label","Viewport","RadioButtonMenuItem","RadioButton"};
for(int i=0;i
String names[]={"Label","CheckBox","PopupMenu","TextPane",
"MenuItem","CheckBoxMenuItem","JRadioButtonMenuItem","ComboBox","Button","Tree","ScrollPane","TabbedPane","EditorPane","TitledBorder","Menu","TextArea","OptionPane","MenuBar","ToolBar","ToggleButton","ToolTip","ProgressBar","TableHeader","Panel","List","ColorChooser","PasswordField","TextField","Table","Label","Viewport","RadioButtonMenuItem","RadioButton"};
for(int i=0;i