static public void displayChanged() { EventQueue.invokeLater(new Runnable() { @Override public void run() { ((Win32GraphicsEnvironment)GraphicsEnvironment .getLocalGraphicsEnvironment()) .displayChanged(); } }); }
@Override public boolean isAccelCapable() { // REMIND: Temp workaround for issues with using HW acceleration // in the browser on Vista when DWM is enabled // Note: isDWMCompositionEnabled is only relevant on Vista, returns // false on other systems. return !Win32GraphicsEnvironment.isDWMCompositionEnabled(); }
public static void displayChanged() { EventQueue.invokeLater(new Runnable() { @Override public void run() { ((Win32GraphicsEnvironment)GraphicsEnvironment .getLocalGraphicsEnvironment()) .displayChanged(); } }); }
static public void displayChanged() { EventQueue.invokeLater(new Runnable() { public void run() { ((Win32GraphicsEnvironment)GraphicsEnvironment .getLocalGraphicsEnvironment()) .displayChanged(); } }); }
public static void registerJREFontsForPrinting() { final String pathName; synchronized (Win32GraphicsEnvironment.class) { GraphicsEnvironment.getLocalGraphicsEnvironment(); if (fontsForPrinting == null) { return; } pathName = fontsForPrinting; fontsForPrinting = null; } java.security.AccessController.doPrivileged( new java.security.PrivilegedAction() { public Object run() { File f1 = new File(pathName); String[] ls = f1.list(SunFontManager.getInstance(). getTrueTypeFilter()); if (ls == null) { return null; } for (int i=0; i <ls.length; i++ ) { File fontFile = new File(f1, ls[i]); registerFontWithPlatform(fontFile.getAbsolutePath()); } return null; } }); }
@Override public int getScreenResolution() { Win32GraphicsEnvironment ge = (Win32GraphicsEnvironment) GraphicsEnvironment.getLocalGraphicsEnvironment(); return ge.getXResolution(); }
static void paletteChanged() { ((Win32GraphicsEnvironment)GraphicsEnvironment .getLocalGraphicsEnvironment()) .paletteChanged(); }