import java.awt.*;
public class FrameFontTest
{
public static void main(String[] args) throws Exception
{
Frame frame = new Frame("Frame font test");
frame.setVisible(true);
if (frame.getFont() == null)
System.out.println("NG");
System.out.println("OK");
}
}
java.awt.Frame.getFont() returns null.