5647N/A @run applet bug4962534.html
5647N/A if (!titleFound) {
5647N/A GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()[0].getConfigurations()[0].getBounds();
5647N/A robot.mouseMove(gcBounds.width / 2 - (int) (r.nextDouble() * multier), gcBounds.height / 2 - (int) (r.nextDouble() * multier));
5647N/A } catch (AWTException e) {
5647N/A e.printStackTrace();
5647N/A boolean frameIsOutOfScreen = false;
5647N/A if (frameIsOutOfScreen) {
5647N/A for (int j = 0; j < lPane.getComponentsInLayer(JLayeredPane.FRAME_CONTENT_LAYER.intValue()).length; j++) {
5647N/A titleComponent = lPane.getComponentsInLayer(JLayeredPane.FRAME_CONTENT_LAYER.intValue())[j];
5647N/A titleFound = true;