160 private native void _setTitle(String title); 161 162 public void setResizable(boolean resizable) { 163 _setResizable(resizable); 164 } 165 166 private native void _setResizable(boolean resizable); 167 168 // Toolkit & peer internals 169 170 WWindowPeer(Window target) { 171 super(target); 172 } 173 174 @Override 175 void initialize() { 176 super.initialize(); 177 178 updateInsets(insets_); 179 180 Font f = ((Window)target).getFont(); 181 if (f == null) { 182 f = defaultFont; 183 ((Window)target).setFont(f); 184 setFont(f); 185 } 186 // Express our interest in display changes 187 GraphicsConfiguration gc = getGraphicsConfiguration(); 188 ((Win32GraphicsDevice)gc.getDevice()).addDisplayChangedListener(this); 189 190 initActiveWindowsTracking((Window)target); 191 192 updateIconImages(); 193 194 Shape shape = ((Window)target).getShape(); 195 if (shape != null) { 196 applyShape(Region.getInstance(shape, null)); 197 } 198 199 float opacity = ((Window)target).getOpacity(); 200 if (opacity < 1.0f) { 201 setOpacity(opacity); 202 } 203 204 synchronized (getStateLock()) { 205 // default value of a boolean field is 'false', so set isOpaque to | 160 private native void _setTitle(String title); 161 162 public void setResizable(boolean resizable) { 163 _setResizable(resizable); 164 } 165 166 private native void _setResizable(boolean resizable); 167 168 // Toolkit & peer internals 169 170 WWindowPeer(Window target) { 171 super(target); 172 } 173 174 @Override 175 void initialize() { 176 super.initialize(); 177 178 updateInsets(insets_); 179 180 if (!((Window)target).isBackgroundSet()) { 181 ((Window)target).setBackground(SystemColor.window); 182 } 183 if (!((Window)target).isForegroundSet()) { 184 ((Window)target).setForeground(SystemColor.windowText); 185 } 186 if (!((Window)target).isFontSet()) { 187 ((Window)target).setFont(defaultFont); 188 setFont(defaultFont); 189 } 190 191 // Express our interest in display changes 192 GraphicsConfiguration gc = getGraphicsConfiguration(); 193 ((Win32GraphicsDevice)gc.getDevice()).addDisplayChangedListener(this); 194 195 initActiveWindowsTracking((Window)target); 196 197 updateIconImages(); 198 199 Shape shape = ((Window)target).getShape(); 200 if (shape != null) { 201 applyShape(Region.getInstance(shape, null)); 202 } 203 204 float opacity = ((Window)target).getOpacity(); 205 if (opacity < 1.0f) { 206 setOpacity(opacity); 207 } 208 209 synchronized (getStateLock()) { 210 // default value of a boolean field is 'false', so set isOpaque to |