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!