void (Graphics g) { if (myShowFullContent) { Graphics2D g2d = (Graphics2D)g.create(); try { g2d.setBackground(Gray.get(158, 158)); g2d.clearRect(0, 0, getWidth(), getHeight()); g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.95f)); paintComponent(g); return; } finally { g2d.dispose(); } } super.paint(g); }