@Override protected void paintChildren(Graphics g) { super.paintChildren(graphics.getGraphics()); iPlatformComponentPainter cp = getComponentPainter(); if (cp != null) { float height = getHeight(); float width = getWidth(); cp.paint(graphics, 0, 0, width, height, iPainter.HORIZONTAL, true); } }
@Override public void paint(Graphics g) { graphics = SwingGraphics.fromGraphics(g, this, graphics); super.paint(g); graphics.clear(); }