示例#1
0
  @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);
    }
  }
示例#2
0
 @Override
 public void paint(Graphics g) {
   graphics = SwingGraphics.fromGraphics(g, this, graphics);
   super.paint(g);
   graphics.clear();
 }