< prev index next >

src/java.desktop/share/classes/javax/swing/ToolTipManager.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 228,238 **** // Returns GraphicsConfiguration instance that toFind belongs to or null // if drawing point is set to a point beyond visible screen area (e.g. // Point(20000, 20000)) private GraphicsConfiguration getDrawingGC(Point toFind) { GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); ! GraphicsDevice devices[] = env.getScreenDevices(); for (GraphicsDevice device : devices) { GraphicsConfiguration config = device.getDefaultConfiguration(); Rectangle rect = config.getBounds(); if (rect.contains(toFind)) { return config; --- 228,238 ---- // Returns GraphicsConfiguration instance that toFind belongs to or null // if drawing point is set to a point beyond visible screen area (e.g. // Point(20000, 20000)) private GraphicsConfiguration getDrawingGC(Point toFind) { GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); ! GraphicsDevice[] devices = env.getScreenDevices(); for (GraphicsDevice device : devices) { GraphicsConfiguration config = device.getDefaultConfiguration(); Rectangle rect = config.getBounds(); if (rect.contains(toFind)) { return config;
< prev index next >