Java Swing Font defaultFont()

Here you can find the source of defaultFont()

Description

default Font

License

Open Source License

Declaration

public static Font defaultFont() 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.awt.Font;

import javax.swing.UIManager;

public class Main {
    public static Font defaultFont() {
        return (Font) UIManager.get("MenuItem.font");
    }//from  ww  w .  j ava 2  s .  c om
}

Related

  1. autoAwesomeLookAndFeel(String fontName, Map defaults)
  2. boldFont(JComponent component)
  3. clipText(JComponent c, Font fnt, String val, int xFrom, int xTo)
  4. createTextAttributes(Font baseFont, Color color, boolean bold, boolean italic)
  5. createTextLayout(JComponent c, String s, Font f, FontRenderContext frc)
  6. drawCentredText(Graphics2D g, Font font, String text, int x, int y)
  7. drawString(Graphics g, Font font, String text, Rectangle rect, int align)
  8. drawString(Graphics g, String text, int x, int y, Font font, Color color)
  9. getAsNotUIResource(Font font)