title: Drawing partially transparent PNG onto JPanel
body: <p>How would i go about drawing a partially transparent image onto a JPanel by overriding its <code>void paint (Graphics g)</code> method? I've tried the obvious way, which is to load the image and then use <code>((Graphics2D)g).drawImage(...)</code> but that didn't work, and the internet isn't telling me much.</p>