Topic: 我在调用JFileChooser时,为什么按钮中的字都是方框,其他的字都正常? |
Print this page |
1.我在调用JFileChooser时,为什么按钮中的字都是方框,其他的字都正常? | Copy to clipboard |
Posted by: stevendu Posted on: 2003-07-24 17:43 |
2.你使的字体不支持中文 [Re: stevendu] | Copy to clipboard |
Posted by: pilgrimhuyu Posted on: 2003-07-25 17:18 jTextField1.setFont(new Font("Arial",Font.BOLD,12));//为乱码 jTextField1.setFont(new Font("SimSun",Font.BOLD,12));//正常显示 |
3.Re:我在调用JFileChooser时,为什么按钮中的字都是方框,其他的字都正常? [Re: stevendu] | Copy to clipboard |
Posted by: stevendu Posted on: 2003-07-26 09:47 JFileChooser file = new JFileChooser(); file.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES); file.setFileFilter( new soundFilter() ); file.setCurrentDirectory(new File(System.getProperty("user.dir"))); file.setDialogTitle("Choose a Sound File"); //修改ApproveButtonText file.setApproveButtonText("Choose"); file.setApproveButtonMnemonic('c'); //修改CancelButtonText javax.swing.UIManager.put("FileChooser.cancelButtonText", "Cancel"); |
4.Re:我在调用JFileChooser时,为什么按钮中的字都是方框,其他的字都正常? [Re: stevendu] | Copy to clipboard |
Posted by: stevendu Posted on: 2003-08-05 17:01 最后发现了原因,我把Alloy的FeelAndLook从程序中去掉就正常了。 |
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 |