Simple Example Drawing in a JFrame
A while back, a friend of mine was having trouble getting started with 2D graphics with swing, so I put together a simple example. This is very nearly the minimum possible setup, with lots of explanatory comments. If anyone uses this, tweet me! I'd be glad to help anyone getting started with it. It assumes a basic knowledge of Java and Eclipse.
This tutorial was written mostly in comments in a eclipse project which you can get a .zip of here
To get the project into eclipse, download it, then open eclipse and go to File>Import, then choose General>Existing Projects Into Workspace, then press next and choose the archive and then next again. No special dependancies.