src/macosx/classes/sun/lwawt/macosx/LWCToolkit.java

Print this page

        

*** 51,61 **** } /** * Mac OS X Cocoa-based AWT Toolkit. */ ! public class LWCToolkit extends LWToolkit { // While it is possible to enumerate all mouse devices // and query them for the number of buttons, the code // that does it is rather complex. Instead, we opt for // the easy way and just support up to 5 mouse buttons, // like Windows. --- 51,61 ---- } /** * Mac OS X Cocoa-based AWT Toolkit. */ ! public final class LWCToolkit extends LWToolkit { // While it is possible to enumerate all mouse devices // and query them for the number of buttons, the code // that does it is rather complex. Instead, we opt for // the easy way and just support up to 5 mouse buttons, // like Windows.
*** 276,286 **** @Override protected MouseInfoPeer createMouseInfoPeerImpl() { return new CMouseInfoPeer(); } - @Override protected int getScreenHeight() { return GraphicsEnvironment.getLocalGraphicsEnvironment() .getDefaultScreenDevice().getDefaultConfiguration().getBounds().height; } --- 276,285 ----
*** 331,342 **** @Override public native void beep(); @Override public int getScreenResolution() throws HeadlessException { ! return ((CGraphicsDevice) GraphicsEnvironment ! .getLocalGraphicsEnvironment().getDefaultScreenDevice()).getScreenResolution(); } @Override public Insets getScreenInsets(final GraphicsConfiguration gc) { final CGraphicsConfig cgc = (CGraphicsConfig) gc; --- 330,342 ---- @Override public native void beep(); @Override public int getScreenResolution() throws HeadlessException { ! return (int) ((CGraphicsDevice) GraphicsEnvironment ! .getLocalGraphicsEnvironment().getDefaultScreenDevice()) ! .getXResolution(); } @Override public Insets getScreenInsets(final GraphicsConfiguration gc) { final CGraphicsConfig cgc = (CGraphicsConfig) gc;