# Java: I can't find a single working graphics source :(

**URL:** <https://forum.kirupa.com/t/java-i-cant-find-a-single-working-graphics-source/296467>\
**Category:** programming\
**Created:** [September 15, 2009, 11:24am UTC](https://forum.kirupa.com/t/java-i-cant-find-a-single-working-graphics-source/296467 "2009-09-15T11:24:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pattt](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@Pattt](https://forum.kirupa.com/u/Pattt)\
**Post date:** [September 15, 2009, 11:24am UTC](https://forum.kirupa.com/t/java-i-cant-find-a-single-working-graphics-source/296467/1 "2009-09-15T11:24:41Z")

</div>

Hi, I want to get started with graphics in Java. To do that, I want a working source file (.java) that just draws a rectangle or something. From there, I will be able to learn the rest.

But, nothing works. ☹ I’m using JCreator. When I try to run a downloaded example, there are no main-function, or some classes imported which I don’t have.

Please, can someone show me how to make a program that draws a rectangle? ☹  
Please please!
