home *** CD-ROM | disk | FTP | other *** search
- package sun.awt;
-
- import java.awt.GraphicsDevice;
- import java.awt.print.PrinterJob;
- import java.security.AccessController;
- import sun.awt.windows.WPrinterJob;
- import sun.java2d.SunGraphicsEnvironment;
- import sun.security.action.LoadLibraryAction;
-
- public class Win32GraphicsEnvironment extends SunGraphicsEnvironment {
- private static native void initDisplay();
-
- protected native int getNumScreens();
-
- protected GraphicsDevice makeScreenDevice(int var1) {
- return new Win32GraphicsDevice(var1);
- }
-
- protected String getOsVersion() {
- String var1 = System.getProperty("os.name");
- String var2 = System.getProperty("os.version");
- return var1.equals("Windows NT") ? "NT" + var2 : var2;
- }
-
- public PrinterJob getPrinterJob() {
- SecurityManager var1 = System.getSecurityManager();
- if (var1 != null) {
- var1.checkPrintJobAccess();
- }
-
- return new WPrinterJob();
- }
-
- static {
- AccessController.doPrivileged(new LoadLibraryAction("awt"));
- initDisplay();
- }
- }
-