import javax.swing.*;
import java.awt.*;
import java.lang.reflect.InvocationTargetException;

public class HtmlTextDiff extends JFrame {
    private static final int FRAME_WIDTH = 500;
    private static final int FRAME_HEIGHT = 500;
    
    HtmlTextDiff() {
        super(buildTitle());
        setPreferredSize(new Dimension(FRAME_WIDTH, FRAME_HEIGHT));
        JLabel label = new JLabel("ALPHA");
        Font arial = new Font("Arial", Font.PLAIN, 128);
        label.setFont(arial);
        add(label, BorderLayout.CENTER);
    }

    private static void showFrame() {
        HtmlTextDiff problemDemo = new HtmlTextDiff();
        problemDemo.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        problemDemo.pack();
        problemDemo.setVisible(true);
    }

    public static void main(String[] args) throws InvocationTargetException, InterruptedException, ClassNotFoundException, UnsupportedLookAndFeelException, InstantiationException, IllegalAccessException {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        SwingUtilities.invokeAndWait(HtmlTextDiff::showFrame);
    }

    private static String buildTitle() {
        return "Font viewer - " + property("java.version") + " " + property("sun.java2d.dpiaware");
    }

    private static String property(String s) {
        return s + "=" + System.getProperty(s);
    }
} 