I'm not sure what the best api for simple 2d graphics with Java is. I know java.awt.Graphics2D
was the standard but has it been replaced? Swing is the new API for Java GUI apps but it seems a bit heavy for what I want. What I really want is something like the C SDL library.
Java 2D (Graphics2D
and friends) is indeed the best choice that I know of. Swing is actually implemented on top of Java 2D, so yes, if you want non-GUI-type graphics, Java 2D is the way to go.
If you want to have the least work possible if you're building a game (or even if not) use http://slick.cokeandcode.com/
UPDATE: The link has since changed to http://slick.ninjacave.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With