equal
deleted
inserted
replaced
248 surfaceData = graphicsConfig.createSurfaceData(this); |
248 surfaceData = graphicsConfig.createSurfaceData(this); |
249 Color c; |
249 Color c; |
250 if (target != null && (c = target.getBackground()) != null) { |
250 if (target != null && (c = target.getBackground()) != null) { |
251 // We need a version of setBackground that does not call repaint !! |
251 // We need a version of setBackground that does not call repaint !! |
252 // and one that does not get overridden. The problem is that in postInit |
252 // and one that does not get overridden. The problem is that in postInit |
253 // we call setBackground and we dont have all the stuff initialized to |
253 // we call setBackground and we don't have all the stuff initialized to |
254 // do a full paint for most peers. So we cannot call setBackground in postInit. |
254 // do a full paint for most peers. So we cannot call setBackground in postInit. |
255 // instead we need to call xSetBackground. |
255 // instead we need to call xSetBackground. |
256 xSetBackground(c); |
256 xSetBackground(c); |
257 } |
257 } |
258 } |
258 } |
434 return true; |
434 return true; |
435 } |
435 } |
436 |
436 |
437 // We need a version of setBackground that does not call repaint !! |
437 // We need a version of setBackground that does not call repaint !! |
438 // and one that does not get overridden. The problem is that in postInit |
438 // and one that does not get overridden. The problem is that in postInit |
439 // we call setBackground and we dont have all the stuff initialized to |
439 // we call setBackground and we don't have all the stuff initialized to |
440 // do a full paint for most peers. So we cannot call setBackground in postInit. |
440 // do a full paint for most peers. So we cannot call setBackground in postInit. |
441 final public void xSetBackground(Color c) { |
441 final public void xSetBackground(Color c) { |
442 XToolkit.awtLock(); |
442 XToolkit.awtLock(); |
443 try { |
443 try { |
444 winBackground(c); |
444 winBackground(c); |