Remember For Later

static {
    msgs = new PGResourceBundle("com.projectgalen.app.pgfleamarket.messages");

    if(SystemInfo.isMacOS) {
        System.setProperty("apple.laf.useScreenMenuBar", "true");
        System.setProperty("apple.awt.application.appearance", "system");
        System.setProperty("apple.awt.application.name", msgs.getString("txt.main.frame.title"));
        System.setProperty("sun.java2d.metal", "true");
        System.setProperty("sun.java2d.opengl", "false");
    }
    else if(SystemInfo.isWindows_10_orLater) {
        System.setProperty("sun.java2d.metal", "false");
        System.setProperty("sun.java2d.opengl", "false");
        System.setProperty("sun.java2d.noddraw", "false");
        System.setProperty("sun.java2d.ddforcevram", "false");
        System.setProperty("sun.java2d.ddblit", "false");
        System.setProperty("sun.java2d.d3d", "true");
    }
    else {
        System.setProperty("sun.java2d.metal", "false");
        System.setProperty("sun.java2d.opengl", "true");
    }

    FlatLightLaf.setup();
}

Leave a Reply