UIManager.put("OptionPane.font",new Font("华文行楷",Font.PLAIN,30));

解决方案 »

  1.   

    UIManager.put("Label.font",m_font);
    UIManager.put("Button.font",m_font);
      

  2.   

    先UIManager,后JOptionPane.showMessageDialog或者不用java的LookAndFeel,用windows的,只在j2sdk for win中可用
    UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
    SwingUtilities.updateComponentTreeUI(你的FRAMES,DIALOGS....);
      

  3.   

    thanks, I am trying on this
      

  4.   

    UIManager.put("OptionPane.messageFont",font);
    UIManager.put("OptionPane.buttonFont",font);