怎么我添加菜单栏里面的菜单选项字都挤得很紧,而且很粗....如何能漂亮点亚

解决方案 »

  1.   

    //-------------------------------------------------------------------------
    //
    public static void main( String[] args )
    {
    setNewFont( new Font( "" , Font.PLAIN , 12 ) );

    MainEntry me = new MainEntry();
    }

    //-------------------------------------------------------------------------
    /**
     * Method setNewFont.
     * @param newFont
     */
        private static void setNewFont( Font newFont )
        { UIManager.put( "Menu.font",  newFont );
    UIManager.put( "MenuItem.font",  newFont );

    return;
        }
      

  2.   

    哈哈, 如果想要弄上下划线的话,用上HTML吧。