Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.awt.Component;

import java.awt.Font;

public class Main {
    /**
     * Tries to derive a default header font from given context.
     * 
     * @param context
     * @return
     */
    public static Font deriveHeader1(Component context) {
        return context.getFont().deriveFont(Font.PLAIN, 16);
    }
}