302 } 303 304 if (c instanceof javax.swing.JComponent) { 305 ((javax.swing.JComponent)c).putClientProperty(AquaFocusHandler.FRAME_ACTIVE_PROPERTY, active); 306 } 307 308 Component[] children = null; 309 310 if (c instanceof javax.swing.JMenu) { 311 children = ((javax.swing.JMenu)c).getMenuComponents(); 312 } else if (c instanceof Container) { 313 children = ((Container)c).getComponents(); 314 } 315 316 if (children == null) return; 317 318 for (final Component element : children) { 319 updateComponentTreeUIActivation(element, active); 320 } 321 } 322 } | 302 } 303 304 if (c instanceof javax.swing.JComponent) { 305 ((javax.swing.JComponent)c).putClientProperty(AquaFocusHandler.FRAME_ACTIVE_PROPERTY, active); 306 } 307 308 Component[] children = null; 309 310 if (c instanceof javax.swing.JMenu) { 311 children = ((javax.swing.JMenu)c).getMenuComponents(); 312 } else if (c instanceof Container) { 313 children = ((Container)c).getComponents(); 314 } 315 316 if (children == null) return; 317 318 for (final Component element : children) { 319 updateComponentTreeUIActivation(element, active); 320 } 321 } 322 323 @Override 324 public final void update(final Graphics g, final JComponent c) { 325 if (c.isOpaque()) { 326 AquaUtils.fillRect(g, c); 327 } 328 paint(g, c); 329 } 330 } |