setOpaque(false); composite = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f);
if (dragged == null) return; Graphics2D g2 = (Graphics2D) g; g2.setComposite(composite); g2.drawImage(dragged, (int) (location.getX() - (dragged.getWidth(this) / 2)), (int) (location.getY() - (dragged.getHeight(this) / 2)), null);
this.dragged = dragged;
this.location = location;