@Override protected void draw(Graphics2D g, int x, int y) { sprite.draw(g, x, y); super.draw(g, x, y); }
public Image(Sprite sprite) { super(); this.sprite = sprite; this.setBounds(new Rectangle(0, 0, sprite.getWidth(), sprite.getHeight())); }