3129 public AccessibleStateSet getAccessibleStateSet() {
3130 AccessibleStateSet states = super.getAccessibleStateSet();
3131 if (getFocusOwner() != null) {
3132 states.add(AccessibleState.ACTIVE);
3133 }
3134 return states;
3135 }
3136
3137 } // inner class AccessibleAWTWindow
3138
3139 @Override
3140 void setGraphicsConfiguration(GraphicsConfiguration gc) {
3141 if (gc == null) {
3142 gc = GraphicsEnvironment.
3143 getLocalGraphicsEnvironment().
3144 getDefaultScreenDevice().
3145 getDefaultConfiguration();
3146 }
3147 synchronized (getTreeLock()) {
3148 super.setGraphicsConfiguration(gc);
3149 if (log.isLoggable(PlatformLogger.FINER)) {
3150 log.finer("+ Window.setGraphicsConfiguration(): new GC is \n+ " + getGraphicsConfiguration_NoClientCode() + "\n+ this is " + this);
3151 }
3152 }
3153 }
3154
3155 /**
3156 * Sets the location of the window relative to the specified
3157 * component according to the following scenarios.
3158 * <p>
3159 * The target screen mentioned below is a screen to which
3160 * the window should be placed after the setLocationRelativeTo
3161 * method is called.
3162 * <ul>
3163 * <li>If the component is {@code null}, or the {@code
3164 * GraphicsConfiguration} associated with this component is
3165 * {@code null}, the window is placed in the center of the
3166 * screen. The center point can be obtained with the {@link
3167 * GraphicsEnvironment#getCenterPoint
3168 * GraphicsEnvironment.getCenterPoint} method.
3169 * <li>If the component is not {@code null}, but it is not
|
3129 public AccessibleStateSet getAccessibleStateSet() {
3130 AccessibleStateSet states = super.getAccessibleStateSet();
3131 if (getFocusOwner() != null) {
3132 states.add(AccessibleState.ACTIVE);
3133 }
3134 return states;
3135 }
3136
3137 } // inner class AccessibleAWTWindow
3138
3139 @Override
3140 void setGraphicsConfiguration(GraphicsConfiguration gc) {
3141 if (gc == null) {
3142 gc = GraphicsEnvironment.
3143 getLocalGraphicsEnvironment().
3144 getDefaultScreenDevice().
3145 getDefaultConfiguration();
3146 }
3147 synchronized (getTreeLock()) {
3148 super.setGraphicsConfiguration(gc);
3149 if (log.isLoggable(PlatformLogger.Level.FINER)) {
3150 log.finer("+ Window.setGraphicsConfiguration(): new GC is \n+ " + getGraphicsConfiguration_NoClientCode() + "\n+ this is " + this);
3151 }
3152 }
3153 }
3154
3155 /**
3156 * Sets the location of the window relative to the specified
3157 * component according to the following scenarios.
3158 * <p>
3159 * The target screen mentioned below is a screen to which
3160 * the window should be placed after the setLocationRelativeTo
3161 * method is called.
3162 * <ul>
3163 * <li>If the component is {@code null}, or the {@code
3164 * GraphicsConfiguration} associated with this component is
3165 * {@code null}, the window is placed in the center of the
3166 * screen. The center point can be obtained with the {@link
3167 * GraphicsEnvironment#getCenterPoint
3168 * GraphicsEnvironment.getCenterPoint} method.
3169 * <li>If the component is not {@code null}, but it is not
|