public static void setUIFont()
  {
    UIManager.put("Table.focusCellHighlightBorder", new BorderUIResource.EmptyBorderUIResource(1, 1, 1, 1));

    Font createFont;
    try
    {
      createFont = Font.createFont(Font.TRUETYPE_FONT, new File("resources/OpenSans-Semibold.ttf"));
    } catch (IOException | FontFormatException ex)
    {
      Logger.getLogger(CustomUIManager.class.getName()).log(Level.SEVERE, null, ex);
      return;
    }

    createFont = createFont.deriveFont(14F);
    FontUIResource f = new FontUIResource(createFont);
    java.util.Enumeration keys = UIManager.getDefaults().keys();
    while (keys.hasMoreElements())
    {
      Object key = keys.nextElement();
      Object value = UIManager.get(key);
      if (value != null && value instanceof FontUIResource)
        UIManager.put(key, f);
    }
  }