Search code examples
javaswinggraphicsgraphics2d

Graphics2D in Java


Firstly, sorry for this type of question. I´m learning Java programming, I have quite a lot skills in this language, but until now I haven´t used graphics2D. I want to learn how to create graphics, but I haven´t found any helpful tutorial. Please, do you know some good tutorial about learning how to create graphics? Thanks in advance.


Solution

  • It depends by what you mean by Graphics2D. This covers a large area, from painting custom components to painting games and/or animation

    I'd start with something like 2D Graphics Trail

    I'd make sure your familiar with Custom Painting in Swing

    I'd also make myself familiar with Painting in AWT and Swing

    Once that begins to make scene, you'd take a look at Concurrency in Swing because eventually you want to use Threads. Pay close attention to the Event Dispatching Thread topic