JOptionPane.showMessageDialog(null, "对不起,该项功能还未做好");出来的字体很难看,请问怎么改呢? UIManager.put("OptionPane.font",new Font("华文行楷",Font.PLAIN,30)); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 UIManager.put("Label.font",m_font);UIManager.put("Button.font",m_font); 先UIManager,后JOptionPane.showMessageDialog或者不用java的LookAndFeel,用windows的,只在j2sdk for win中可用UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");SwingUtilities.updateComponentTreeUI(你的FRAMES,DIALOGS....); thanks, I am trying on this UIManager.put("OptionPane.messageFont",font);UIManager.put("OptionPane.buttonFont",font); 使用java编写一个删除空行的小程序,要考虑TAB符和ENTER换行等所有情况,请大虾贴代码。 有没有jbilder 9中文帮助文档? 谁能帮忙写个方法,马上送分~ 用Class.forName(String)时,提示找不到这个类? 有谁懂得这个问题吗? 要倒序输出,但编的做不到,谁帮我看看? 请教,在jbuilder中,如何将菜单上的一个子菜单项和与它对应的窗口链接起来? 为什么java和vb通过socket传输文件时,java在接收数据时始终处于read状态? 用JavaMail法送邮件问题 访问与调用的问题 画图问题,求救啊 请教 如何设置JOptionPane弹出对话框的字体
UIManager.put("Button.font",m_font);
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
SwingUtilities.updateComponentTreeUI(你的FRAMES,DIALOGS....);
UIManager.put("OptionPane.buttonFont",font);